--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/a767e0ee-a27c-45ee-bf5c-6efbc2d9d717n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "antlr-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/antlr-discussion/45Z6EL8th9A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/638cc1ad.a70a0220.a35a6.27f2SMTPIN_ADDED_BROKEN%40gmr-mx.google.com.
Apologies its ‘grun’ email system replacement.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/CAB_pDVU%3DAfKB7M9AbDTxTZpjW063Ao9FKfJvcpJdsYxJPMUXAQ%40mail.gmail.com.
Le 5 déc. 2022 à 16:52, Ross Patterson <ross.pa...@gmail.com> a écrit :
The "TestRig" tool shipped with ANTLR might help. It's commonly called "grun", but you won't find any code by that name. You run it from the command line via "java org.antlr.v4.runtime.misc.TestRig", after first compiling the grammar. It has several options, but the one that will show you the list of tokens is "-tokens". If the lexer is correctly determining the tokens, but the parser isn't using the syntax rule you expect, you might find the "-gui" option useful - it will open up a window showing the full parse tree. That gets you the "what", but not the "why". ANTLR doesn't appear to have a "tell me why you chose that parse alternative" capability.
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/4977aa96-6bff-461c-bcee-617e9f397445n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/a767e0ee-a27c-45ee-bf5c-6efbc2d9d717n%40googlegroups.com.