About
grun.(bat|sh) is the command line script of testrig
Articles Related
Syntax
grun
Warning: TestRig moved to org.antlr.v4.gui.TestRig; calling automatically
java org.antlr.v4.gui.TestRig GrammarName startRuleName
[-tokens] [-tree] [-gui] [-ps file.ps] [-encoding encodingname]
[-trace] [-diagnostics] [-SLL]
[input-filename(s)]
Use startRuleName='tokens' if GrammarName is a lexer grammar.
Omitting input-filename makes rig read from stdin.
where:
- grammarName is the name of the grammar file
- startRuleName is the name of the start rule for a parser grammar
- -tree prints the parse tree in LISP notation.
- -tokens to show the tokens detected,
- -gui to generate an image of the syntax tree