File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Collections ;
3+ using System . Collections . Generic ;
4+ using System . Linq ;
5+ using System . Text ;
6+ using System . Threading . Tasks ;
7+
8+ namespace Markdown
9+ {
10+ internal class Parser
11+ {
12+ private StringBuilder result ; // для построения результата пошагово
13+ private int pos ; // позиция парсера в списке токенов
14+ private Stack < Marker > parsingStack ;
15+ private List < ParsingRule > parsingRules ;
16+ public Parser ( List < ParsingRule > parsingRules )
17+ {
18+ throw new NotImplementedException ( ) ;
19+ }
20+ public bool CanParse ( List < Token > tokens )
21+ {
22+ throw new NotImplementedException ( ) ;
23+ }
24+
25+ public string Parse ( List < Token > tokens )
26+ {
27+ throw new NotImplementedException ( ) ;
28+ }
29+ private ParseUntilTerminator ( TokenType terminator )
30+ {
31+ throw new NotImplementedException ( ) ;
32+ }
33+ private Token Lookahead ( int ahead = 0 ) // в процессе парсинга будем заглядывать в список токенов
34+ // чтобы узнать какое правило применить
35+ {
36+ throw new NotImplementedException ( ) ;
37+ }
38+ }
39+ }
You can’t perform that action at this time.
0 commit comments