Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
expr/ | 23-Nov-2023 | - | 76 | 58 | ||
id/ | 23-Nov-2023 | - | 34 | 24 | ||
mexpr/ | 23-Nov-2023 | - | 50 | 36 | ||
simplecalc/ | 23-Nov-2023 | - | 58 | 43 | ||
tweak/ | 23-Nov-2023 | - | 110 | 88 | ||
zero-one/ | 23-Nov-2023 | - | 56 | 39 | ||
README | D | 23-Nov-2023 | 412 | 17 | 10 |
README
1This directory contains examples for the Perl 5 code generation target. 2 3First you need to compile ANTLR, running "ant" in the top level directory. 4 5Then you need to build the Perl module. 6 7 perl Makefile.PL 8 make 9 10After that you need to compile the grammar using ANTLR, for example by using 11the antlr.bat I've added. 12 13 cd examples\expr 14 ..\..\antlr Expr.g 15 16Finally you can run the example programs. 17