The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

parse.file.pl - Parsing any Lua source code file

SYNOPSIS

parser.file.pl [options]

        Options:
        -attributes Boolean
        -help
        -input_file_name aLuaFileName
        -maxlevel aString
        -minlevel aString
        -output_file_name aTextFileName

All switches can be reduced to a single letter.

Exit value: 0.

OPTIONS

o -attributes Boolean

Specify whether or not to include tree node attributes when logging the tree output by decoding the value returned by Marpa::R2::Scanless::R.

Values:

o 0

Do not include attributes.

o 1

Include attributes.

Default: 0.

o -help

Print help and exit.

o -input_file_name aLuaFileName

The name of an Lua file to process.

See lua.sources/*.lua for some samples.

This option is mandatory.

Default: ''.

o -maxlevel logOption1

This option affects Log::Handler.

See the Log::handler docs.

By default, nothing is printed. If you use $self -> log(debug => 'Finished') then nothing will appear until you use new(maxlevel => 'debug'), or use -maxlevel debug on the command line.

Default: 'notice'.

o -minlevel logOption2

This option affects Log::Handler.

See the Log::handler docs.

Default: 'error'.

No lower levels are used.

o -output_file_name aTextFileName

The name of a text file to write, of parsed tokens.

By default, nothing is written.

See lua.output/*.txt for some samples.

Default: ''.