rperl Front-End Program
Restricted Perl, The Optimizing Perl 5 Compiler
rperl [OPTIONS] input_file_0.(pm|pl) [input_file_1.(pm|pl) ...]
Print a brief help message.
Print version number and copyright information. Lowercase 'v' not to be confused with uppercase 'V' in 'Verbose' option below.
Follow and compile dependencies, or not. Enabled by default, equivalent to '--mode dependencies=ON' option. Lowercase 'd' not to be confused with uppercase 'D' in 'Debug' option below. WARNING: Disabling dependencies will likely cause errors or undefined behavior.
Specify input file, may be repeated for multiple input files. Option prefix '--infile' may be entirely omitted. Option prefix MUST be omitted to specify wildcard for multiple input files.
Specify output file prefix, may be repeated for multiple output files. RPerl *.pm input file with PERL ops will create MyFile.pmc output file. RPerl *.pl input file with PERL ops will create my_file (or my_file.exe) & my_file.pmc output files. RPerl *.pm input file with CPP ops will create MyFile.pmc, MyFile.cpp, & MyFile.h output files. RPerl *.pl input file with CPP ops will create myfile (or myfile.exe on Windows), MyFile.pmc, MyFile.cpp, & MyFile.h output files. Option may be entirely omitted, 'MyFile.*' input file will default to 'MyFile.*' out.
Specify operations mode, CPP by default. If set to PERL, forces types mode to PERL & compile mode to PARSE or GENERATE; test mode, does not actually compile.
Specify data types mode, CPP by default. DUAL mode allows generate-once-compile-many types, selected by '#define __FOO__TYPES' in lib/rperltypes_mode.h file.
Specify data type checking mode, TRACE by default.
Specify dependencies mode, ON by default.
Specify compile mode, SUBCOMPILE by default.
Specify execute mode, ON by default.
Specify source section label mode, ON by default.
Generate & subcompile C++ source code, or not. Enabled by default, equivalent to '--mode compile=SUBCOMPILE' option.
Run input code after optional compile, or not. Enabled by default for *.pl program input files, always disabled for *.pm module input files or multiple input files. Equivalent to '--mode execute=ON' option.
Include additional user information in output, or not. Disabled by default, equivalent to `export RPERL_VERBOSE=1` shell command. Uppercase 'V' not to be confused with lowercase 'v' in 'version' option above.
Include system diagnostic information in output, or not. Disabled by default, equivalent to `export RPERL_DEBUG=1` shell command. Uppercase 'D' not to be confused with lowercase 'd' in 'dependencies' option above.
Include system warnings in output, or not. Enabled by default, equivalent to `export RPERL_WARNINGS=0` shell command.
Test mode: Perl ops, Perl types, Parse & Generate (no Save or Compile) Disabled by default, equivalent to '--mode ops=PERL --mode types=PERL --mode compile=GENERATE' options.
RPerl is a compiler. For more info:
https://github.com/wbraswell/rperl/blob/master/README.md
RPerl
William N. Braswell, Jr.
mailto:wbraswell@NOSPAM.cpan.org
To install RPerl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPerl
CPAN shell
perl -MCPAN -e shell install RPerl
For more information on module installation, please visit the detailed CPAN module installation guide.