android_mt6572_jiabo/external/antlr/antlr-3.4/runtime/Perl5/examples
2025-09-05 16:56:03 +08:00
..
expr first commit 2025-09-05 16:56:03 +08:00
id first commit 2025-09-05 16:56:03 +08:00
mexpr first commit 2025-09-05 16:56:03 +08:00
simplecalc first commit 2025-09-05 16:56:03 +08:00
tweak first commit 2025-09-05 16:56:03 +08:00
zero-one first commit 2025-09-05 16:56:03 +08:00
README first commit 2025-09-05 16:56:03 +08:00

This directory contains examples for the Perl 5 code generation target.

First you need to compile ANTLR, running "ant" in the top level directory.

Then you need to build the Perl module.

    perl Makefile.PL
    make

After that you need to compile the grammar using ANTLR, for example by using
the antlr.bat I've added.

    cd examples\expr
    ..\..\antlr Expr.g

Finally you can run the example programs.