yapps2(1)

yapps21

Generate python parser code from grammar description file

Usage

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

Overview

yapps2 generates python parser code from a grammar description file.

Options

-h, --help

show a help message and exit

-i, --context-insensitive-scanner

Scan all tokens. See the documentation for details.

-t, --indent-with-tabs

Use tabs instead of four spaces for indentation in generated code.

--dump

Dump out grammar information.

grammar_file

grammar description file (input)

parser_file

Name of the output file to be generated. The grammar file's name, with .py appended, will be used, if omitted.

Releases

Unchanged in 4 releases since Debian 10 (Buster).

  1. 10–13

From yapps2 2.2.1-3.2 in Debian 13 (Trixie). Parsed by carta from the page's man source.