yyextract(1)

yyextract1

Extract grammar rules from a yacc grammar

Usage

yyextract [-behyV] [-o file] [-t title] [-w cols] [file ...]

Overview

The yyextract utility extracts the grammar rules from a yacc grammar.

The options are as follows:

-b

Select the Backus-Naur Form (BNF) for the output.

-e

Select the Extended Backus-Naur Form (EBNF) for the output.

-h

Output in HTML format.

-o file

Set the output destination to file.

-t title

Specify the page title for the generated HTML page.

-w cols

Set the width limit of the output (this sets only the width of the %token header).

-y

Select the yacc format for the output. This is the default format.

-V

Print version information on standard output then exit.

Notes

The Extended Backus-Naur Form (EBNF) is like the Backus-Naur Form (BNF) but with the empty rules translated with the zero-or-one operator (within the brackets '[' and ']').

Releases

15 releases since Debian 2.0 (Hamm); the text changed 1 time.

  1. 2.0–2.2
  2. 3.0–13

-t since Debian 3.0 (Woody).

Authors

Sandro Sigala <[email protected]>

From cutils 1.6-7 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.