From 30836a47c5fc984b9f9db39e710ae9e59f616eb8 Mon Sep 17 00:00:00 2001 From: Daniel Katz Date: Tue, 13 Jun 2017 21:29:44 +0300 Subject: [PATCH] CharStreams is deprecated in 4.7 --- doc/javascript-target.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/javascript-target.md b/doc/javascript-target.md index 144aa5f81..3473e95b5 100644 --- a/doc/javascript-target.md +++ b/doc/javascript-target.md @@ -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);