Michael Granger > Text-Templar-2.43 > checkparser

Download:
Text-Templar-2.43.tar.gz

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

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

SYNOPSIS ^

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

GRAMMAR ^

A Parse::RecDescent grammar.

TARGETFILE ^

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

OPTIONS ^

-h, --help

Output a help message and exit.

-V, --version

Output version information and exit.

-d, --debug

Turn on debugging information for checkparser itself. May be specified more than once for (potentially) increased levels of debugging.

-w, --warn=<level>

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).

-h, --hints

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.

-p, --ptrace

Turn on tracing if the parser generator via RD_TRACE.

-t, --trace

Turn on tracing of the parser via RD_TRACE.

-r, --rule=<rulename>

Specify a rule to start the parse from. This defaults to the first rule in the grammar.

-e, --tree

Print the abstract syntax tree parsed from the specified target file using the given grammar.

REQUIRES ^

Token requires line

DESCRIPTION ^

None yet.

AUTHOR ^

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.