THE PCYACC PROGRAM

PCYDB Debugger Documentation

PCYACC Object Oriented Toolkit - Java, C++, Delphi, VBS, Vbasic

PCYACC Program [options] <gdf_name>

Where <gdf_name> is the name of the file containing a grammar description program ( GDP ), a program written in GDL; and [options] represents zero or more command line options. Files used to hold GDP's are called grammar description files, or GDF's for short.

Command Line Options

Command line options are used to override default actions or file name conventions, or to indicate actions you want PCYACC to perform in addition to what it does automatically. Available options are described below:

-c: This option overrides default C file name. Instead of using the basename of the grammar description file plus the ".c" extension, it uses "yytab.c". This option is provided to maintain compatibility with earlier versions.

-C<cf>: Like -c, this option overrides default C file name, but uses the name provided by the user, <cf>.

-d: This option tells PCYACC to produce a C header file, using the default file name "yytab.h", in addition to the C code file.

-D<hf>: Like -d, this option produces a C header file, but with a different file name convention. If no <hf> is provided, PCYACC will use the basename of the grammar description file with an extension ".h"; otherwise <hf> will be used instead.

-h: Print a help screen.

-n: Omit #line numbers from output parser file.

-p<pf>: Use the user provided parser skeleton contained in <pf> file instead of the system default.

-s: This option instructs PCYACC produces short integer internal arrays for the parser. The default type for the internal arrays is integer.

-S: This option overrides PCYACC's default action. Instead of processing the grammar description file, it quits after the syntax analysis phase. This option is useful for doing syntax debugging on large grammar description files, especially when coupled with an extensible text editor (see Chapter XIV).

-t: This option tells PCYACC to construct the parser in such a way that it will build a parse tree for the program being processed. The parse tree, by default, is saved to the file "yy.ast" an is generated during parser runtime.

-T<tf>: Same as option -t, except with different file name conventions. If <tf> is not provided, the parse tree is saved to the file named by the basename of the grammar description file with an ".ast" extension; otherwise, it is saved to <tf>.

-v: This option produces a textual parsing table, in addition to the C parser, using the default file name "yy.lrt".

-V<vf>: Same as option -v, except that the parsing table is saved to either <vf> or a file named by the basename of the grammar description file and the extension ".lrt".