README
This directory contains the
Anubis Parser Generator
To check its content, do as follows:
(1) Compile the file `parser_generator.anubis` to produce the module `apg.adm`:
anubis parser_generator.anubis
(2) Compile the example `calculator_example.apg` with `apg`, to produce the file:
`generated/calculator_example.apg.anubis`.
anbexec apg calculator_example.apg
(3) Compile `calculator_example.apg.anubis` with `anubis`, to produce the module
`calculator_example.adm`:
anubis generated/calculator_example.apg.anubis
(4) Try out the example with the command:
anbexec calculator_example
This is a small calculator which recognizes integers, the operations `+`, `-`, `*` and
`^`, and parentheses.
Note: If you want to trace the work of the parser automaton, use the option `-trace`
when compiling with `apg`.