---
name: "yapps2"
section: "1"
platform: "linux"
package: "yapps2"
version: "2.2.1-3.2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/yapps2"
---

# yapps2(1)

generate python parser code from grammar description file

## NAME

yapps2 - generate python parser code from grammar description file

## SYNOPSIS

**yapps2** \[**-h**\] \[**-i**, **--context-insensitive-scanner**\] \[**-t**, **--indent-with-tabs**\] \[**--dump**\] *grammar\_file*\[*parser\_file*\]

## DESCRIPTION

**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.
