parse.file.pl - Parsing any Lua source code file
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.
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:
Do not include attributes.
Include attributes.
Default: 0.
Print help and exit.
The name of an Lua file to process.
See lua.sources/*.lua for some samples.
This option is mandatory.
Default: ''.
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'.
Default: 'error'.
No lower levels are used.
The name of a text file to write, of parsed tokens.
By default, nothing is written.
See lua.output/*.txt for some samples.
To install MarpaX::Languages::Lua::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MarpaX::Languages::Lua::Parser
CPAN shell
perl -MCPAN -e shell install MarpaX::Languages::Lua::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.