---
name: "parse-sdf2"
section: "1"
platform: "linux"
package: "xt-sdf2"
version: "2.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/parse-sdf2"
---

# parse-sdf2(1)

pgen tool

## NAME

parse-sdf2 - pgen tool

## SYNOPSIS

**parse-sdf2** \[ **-2** \] \[ **-A\>** \] \[ **-b** \] \[ **-c** \] \[ **-d** \] \[ **-f** *\[adeipr\]* \] \[ **-h -?** \] \[ **-i** *file* \] \[ **-l** \] \[ **-m** \] \[ **-n** \] \[ **-o** *file* \] \[ **-p** *file* \] \[ **-s** *symbol* \] \[ **-t** \] \[ **-v** \] \[ **-V** \]

## DESCRIPTION

This manual page briefly describes the **parse-sdf2** commands.

## OPTIONS

- **-2**

  use AsFix2 output format

- **-A**

  ambiguities are treated as errors

- **-b**

  output AsFix in binary format (BAF)

- **-c**

  toggle cycle detection

- **-d**

  toggle debug mode

- **-f** *\[adeipr\]*

  a : associativity

  d : direct eagerness

  e : eagerness

  i : injection count

  p : priority

  r : reject

- **-h -?**

  display usage information

- **-i** *input*

  Read input from file input

- **-l**

  toggle statistics logging

- **-m**

  use AsFix2ME output format

- **-n**

  toggle parse tree creation

- **-o** *output*

  write output to file output

- **-p** *file*

  use parse table \|file\| (required)

- **-s** *symbol*

  define start symbol

- **-t**

  output AsFix in textual format

- **-v**

  toggle verbose mode

- **-V**

  reveal program version

## SEE ALSO

[parsetablegen(1)](/parsetablegen/1.md), [sdfchecker(1)](/sdfchecker/1.md)

## AUTHOR

This manual page was written by Julien LEMOINE \<speedblue@debian.org\>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
