Name Last Update
..
README Loading commit data...
anubis_output.anubis Loading commit data...
anubis_output.anubis.test Loading commit data...
calculator_example.apg Loading commit data...
common.anubis Loading commit data...
essai.apg Loading commit data...
make_automaton.anubis Loading commit data...
parser_generator.anubis Loading commit data...
read_grammar.anubis Loading commit data...
yacc_version.anubis Loading commit data...

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`.