Home > antlr > antlr -p

antlr(1) -p
ANother Tool for Language Recognition
-p     The complete grammar, collected from all input grammar files and  stripped  of  all  comments  and
       embedded actions, is listed to stdout.  This is intended to aid in viewing the entire grammar as a
       whole and to eliminate the need to keep actions concisely stated so that the grammar is easier  to
       read.   Hence, it is preferable to embed even complex actions directly in the grammar, rather than
       to call them as subroutines, since the subroutine call overhead will be saved.


-pa This option is the same as -p except that the output is annotated with the first sets determined from grammar analysis.

Tips or Questions?

Powered by ExplainShell