Open KerimG opened 4 months ago
Your grammar, "Sql", is a combined grammar. Did you clear out the "Lexer grammar" tab in Antlr Lab? Antlr Lab sets up the UI with a default example, which is a split grammar.
Antlr Lab is down, again. It would be good to add to "cron" a periodic reboot. No "code" of the server needs to change, so it would be an easy fix for something that keeps crashing.
Antlr Lab does not run a JavaScript target of the parser. It runs an "interpreter" in a Java process.
Hi all, this is the first time I'm using ANTLR4 with a JavaScript target I tried testing the grammar in the ANTLR4 lab and got the following additional information. It seems to me, as though, there's a problem with the token recognition in the JavaScript runtime.
replacing
*
withfoo
returns this:in
grun
everything looks like I'd expect:with the following output:
Btw, is there
-token
equivalent in JavaScript?Grammar: