lc
lc 0.20.3 - PRODUCTION
Leonardus Command Line Calculator
Syntax: lc [options] code
code ......... LeoScript code
Options:
-h ........... this text
-V dirname ... sources in vocabulary dirname,
multiple -V options are supported
-v ........... activate verbose mode
lc takes LeoScript code from the command line
adds a final operand stack trace and sends both to Tools/../lb.
E.g.:
lc 1 2 1 33 { mul } for
lc \(Hello World\) =
lc 323 437 xgcd
lc -- -4 323 mul 3 437 mul add
Exit codes:
0 ..... success
1 ..... operator error
2 ..... parser, semantics or internal error -or- environment issue
3 ..... command line issue
4 ..... panic error
lb
lb 0.20.3 - PRODUCTION
Leonardus Batch Shell
Syntax: lb [options] filename|-|lbcommand
filename|- ... input file name or '-' for standard in
lbcommand .... command if -C given as option
Options:
-b ........... skips sourcing in of boot.leo
-C ........... ignores -bipV and executes lbcommand
-h ........... this text
-i ........... runs interpreter pass leon only, thus expecting a leon-format input file
-p ........... runs interpreter pass parser only
-V dirname ... sources in vocabulary dirname, multiple -V options are supported
-v ........... verbose output for parser and leon
lbcommands:
lsvoc ........... lists vocabularies
manpage ......... generates man pages from vocabularies and post processes special characters
version ......... prints version information
Default: lb runs parser and leon with sourcing in of boot.leo
boot.leo can be stored in the directory of lb or in ../lib/leonardus
Vocabularies can be stored in Tools/../vocabularies or Tools/../../lib/leonardus/vocabularies
Exit codes:
0 ..... success
1 ..... operator error
2 ..... parser, semantics or internal error -or- environment issue
3 ..... command line issue
4 ..... panic error
parser
#:parser 0.20.3 - PRODUCTION
#:Leonardus syntax parsing pass
#:
#:Syntax: parser [options]
#:Options:
#: -h .... help text
#: -v .... verbose mode
#:
#:parser reads from standard in.
#:
#:Exit codes:
#: 0 ..... success
#: 2 ..... parsing error
#: 3 ..... command line issue
leon
leon 0.20.3 - PRODUCTION
The Leonardus interpreter reading leon-format files.
Syntax: leon [options] [filename|-]
filename|- ... input file name or '-' for standard in
Options:
-h .... help text
-v .... verbose mode
Exit codes:
0 ..... success
1 ..... operator error
2 ..... parser, semantics or internal error
3 ..... command line issue
4 ..... panic error