
checkparser - Parse a template, outputting lots of Parse::RecDescent debugging

$ checkparser -h $ checkparser -V $ checkparser OPTIONS GRAMMAR $ checkparser OPTIONS GRAMMAR TARGETFILE

A Parse::RecDescent grammar.

A file that should be parsed by the parser generated from the specified GRAMMAR.

Output a help message and exit.
Output version information and exit.
Turn on debugging information for checkparser itself. May be specified more than once for (potentially) increased levels of debugging.
Turn on RD_WARN warnings at the specified level (1-3), 1 being the most verbose, and 3 being the least. Defaults to '3' (only the most serious warnings).
Turn on RD_HINT, which causes the parser generator to offer more detailed analyses and hints on both errors and warnings. Note that Parse::RecDescent automatically sets RD_WARN to 1 when this is turned on, regardless of the -w setting.
Turn on tracing if the parser generator via RD_TRACE.
Turn on tracing of the parser via RD_TRACE.
Specify a rule to start the parse from. This defaults to the first rule in the grammar.
Print the abstract syntax tree parsed from the specified target file using the given grammar.

Token requires line

None yet.

Michael Granger <ged@FaerieMUD.org>
Copyright (c) 2002 The FaerieMUD Consortium. All rights reserved.
This program is Open Source software. You may use, modify, and/or redistribute this software under the terms of the Perl Artistic License. (See http://language.perl.com/misc/Artistic.html)
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.