yapps(1)

yapps1

Create a python module from a grammar file

Usage

yapps [--dump] [--use-devel-grammar] [-fcontext-insensitive-scanner] [-p pid] [-f] input.g [output.py] name

Overview

--dump Dump out grammar information
--use-devel-grammar Use the devel grammar parser from
yapps_grammar.py instead of the stable grammar from grammar.py
-fcontext-insensitive-scanner Scan all tokens (see docs)

yapps generates a Python program which will parse a given grammar.

Options

--dump

Dump the grammar information to stdout.

--use-devel-grammar

Use the grammar file in ./yapps_grammar.py instead of yapps/grammar.py.
This option is useful for testing new grammar parsers. (Yes, yapps' parser is itself written with yapps...)

-fcontext-insensitive-scanner

Set the option to use the non-context-sensitive scanner.

Caveats

yapps implements a recursive-descent scanner.

Releases

Unchanged in 7 releases since Debian 3.1 (Sarge).

  1. 3.1–9

History

Written by Amit J. Patel <[email protected]>.
This version was enhanced by Matthias Urlichs <[email protected]>. It is not downwards-compatible with the original yapps2 (yet) and uses a different runtime library.
See the change log for details.

From yapps2 2.1.1-17.5 in Debian 9 (Stretch). Parsed by carta from the page's man source.