next up previous contents
Next: Options Up: Generated Parsers Previous: Generated Parsers

Description

The parser generated from the grammar-file <grammar>.gra is invoked by the command:

<grammar>  [ -bBOpwGuUrvh ] [ -P <number> ] [ -T <number> ] [ -s '<characters>' ] [ -i '<characters>' ] [ -l '<characters>' ] <infile> ] [ -o <outfile> ]

The parser <grammar> generated by GEN reads its input from a <infile>. If no input file is specified the user is prompted for input.

Each line of input is split up into all possible sequences of terminal symbols from the grammar and/or the lexicon (lexical analysis). If lexical analysis succeeds, the parser will try to find all parsings of the sentence. For each parse the resulting output with some statistics is displayed, unless the generation of output is suppressed. The resulting output is a parse tree or the transduction specified by the grammar. The parse tree can be given in two different formats, default is an indented tree, but a labeled bracket tree is also possible. After all parsings have been found, the number of parsings and some statistics are displayed. Output is written to the file <outfile>. If no output-file is specified the output is written to the standard output device.


next up previous contents
Next: Options Up: Generated Parsers Previous: Generated Parsers

2000-01-10