Skip to content

plcc-diagram-syntax

Generate and display a syntax grammar (EBNF) diagram from a PLCC spec file. Shows the grammar rules derived from the syntactic section of the spec.

Requires the plcc-diagram package.

Usage

plcc-diagram-syntax [-v ...] [options]

Arguments and options

Option Description
-s PATH, --spec=PATH Spec file. Remembered across invocations. Defaults to spec.plcc.
--format=FMT Diagram format plugin to use. Default: plantuml.
-b, --banner Print the plcc-ng version and spec path to stderr.
-h, --help Show usage and exit.
-v Increase verbosity (repeat for more: -v, -vv, -vvv).
--verbose-format=FMT Verbosity output format: text (default) or json.

Examples

plcc-diagram-syntax -s subtract.plcc

Diagram formats

plcc-diagram-syntax dispatches to diagram extension plugins via --format. Use plcc-diagram-list to see installed formats. See Diagram extensions for details.