Documentation
¶
Overview ¶
llxgen is a console utility translating grammar description to Go or JSON file. Usage is
llxgen ([-j] | [-p <name>] [-v <name>]) [-o <name>] <file>
-j flag instructs llxgen to output JSON file instead of Go source;
-o <name> defines output file name, default is the name of input file with .go or .json suffix;
-p <name> defines Go package name, default is directory name of input file;
-v <name> defines generated Go variable name of type *grammar.Grammar, default is the name of root node;
<file> defines grammar definition file parsable by langdef.Parse().
Click to show internal directories.
Click to hide internal directories.