llxgen

command
v0.0.0-...-9e081f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 9 Imported by: 0

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().

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL