Merge pull request #1912 from danielkatz/patch-1
Update the example in JavaScript readme doc to 4.7
This commit is contained in:
commit
77f3c767b7
|
@ -96,7 +96,7 @@ Now a fully functioning script might look like the following:
|
|||
|
||||
```javascript
|
||||
var input = "your text to parse here"
|
||||
var chars = CharStreams.fromString(input);
|
||||
var chars = new antlr4.InputStream(input);
|
||||
var lexer = new MyGrammarLexer.MyGrammarLexer(chars);
|
||||
var tokens = new antlr4.CommonTokenStream(lexer);
|
||||
var parser = new MyGrammarParser.MyGrammarParser(tokens);
|
||||
|
|
Loading…
Reference in New Issue