Merge pull request #3089 from namasikanam/master

fix a typo in the csharp-target doc
This commit is contained in:
ericvergnaud 2021-02-21 11:13:08 +08:00 committed by GitHub
commit 60fd27ff93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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);