DOKK / manpages / debian 12 / yapps2 / yapps2.1.en
YAPPS2(1) General Commands Manual YAPPS2(1)

yapps2 - generate python parser code from grammar description file

yapps2 [-h] [-i, --context-insensitive-scanner] [-t, --indent-with-tabs] [--dump] grammar_file[parser_file]

yapps2 generates python parser code from a grammar description file.

show a help message and exit
Scan all tokens. See the documentation for details.
Use tabs instead of four spaces for indentation in generated code.
Dump out grammar information.
grammar description file (input)
Name of the output file to be generated. The grammar file's name, with .py appended, will be used, if omitted.