dragon(1)

NAME
dragon - object oriented parser generator suite

SYNOPSIS

dragon [-v] [-h] [-d] [-j] [-y] [-m lr1|lalr] -p grammar

DESCRIPTION

The dragon program reads and analysis the grammar description in the given grammar file and generates compile ready object oriented C++ code or Java code parser module for the given grammar.

OPTIONS

-p grammar
    Specify the grammar to read from. It must be exist a corresponding grammar file with the suffix .def to be read from. See the documentation of dragon for a detailed description of the grammar format.

-d
    Enable debug mode for statement step analysis

-j
    Generate Java code. At default C++ code is generated. With the -j switch, Java code is generated

-y
    Dynamic parse tables are generated in the resulting code. Instead of static arrays, the required parse tables are allocated during instance creation of the parser.

-m < lr1 | lalr >
    Use LR1 or LALR parse analysis. For performance reasons, LALR mode is recommended.

-v
    Print the current version of the program

FILES
No configuration files are given

ENVIRONMENT
No environment variables are used

DIAGNOSTICS
dragon exits 0 on success, 1 if an error occurs.

BUGS
No known bugs

AUTHOR
Bjoern Lemke <bjoern@pinkw.de>

SEE ALSO
dragon main documentation