Merge pull request #3089 from namasikanam/master
fix a typo in the csharp-target doc
This commit is contained in:
commit
60fd27ff93
|
@ -286,3 +286,4 @@ YYYY/MM/DD, github id, Full name, email
|
||||||
2020/12/03, electrum, David Phillips, david@acz.org
|
2020/12/03, electrum, David Phillips, david@acz.org
|
||||||
2021/01/25, l215884529, Qiheng Liu, 13607681+l215884529@users.noreply.github.com
|
2021/01/25, l215884529, Qiheng Liu, 13607681+l215884529@users.noreply.github.com
|
||||||
2021/02/02, tsotnikov, Taras Sotnikov, taras.sotnikov@gmail.com
|
2021/02/02, tsotnikov, Taras Sotnikov, taras.sotnikov@gmail.com
|
||||||
|
2021/02/21, namasikanam, Xingyu Xie, namasikanam@gmail.com
|
||||||
|
|
|
@ -36,7 +36,7 @@ using Antlr4.Runtime.Tree;
|
||||||
|
|
||||||
public void MyParseMethod() {
|
public void MyParseMethod() {
|
||||||
String input = "your text to parse here";
|
String input = "your text to parse here";
|
||||||
ICharStream stream = CharStreams.fromstring(input);
|
ICharStream stream = CharStreams.fromString(input);
|
||||||
ITokenSource lexer = new MyGrammarLexer(stream);
|
ITokenSource lexer = new MyGrammarLexer(stream);
|
||||||
ITokenStream tokens = new CommonTokenStream(lexer);
|
ITokenStream tokens = new CommonTokenStream(lexer);
|
||||||
MyGrammarParser parser = new MyGrammarParser(tokens);
|
MyGrammarParser parser = new MyGrammarParser(tokens);
|
||||||
|
|
Loading…
Reference in New Issue