Merge pull request #1912 from danielkatz/patch-1

Update the example in JavaScript readme doc to 4.7
This commit is contained in:
Terence Parr 2017-06-25 08:39:20 -07:00 committed by GitHub
commit 77f3c767b7
1 changed files with 1 additions and 1 deletions

View File

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