Skip to content

Commit 7f81aab

Browse files
committed
добавил класс Parser
1 parent fb34c39 commit 7f81aab

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Markdown/Parser.cs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
}

0 commit comments

Comments
 (0)