xref: /aosp_15_r20/external/antlr/runtime/Perl5/examples/README (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1*16467b97STreehugger RobotThis directory contains examples for the Perl 5 code generation target.
2*16467b97STreehugger Robot
3*16467b97STreehugger RobotFirst you need to compile ANTLR, running "ant" in the top level directory.
4*16467b97STreehugger Robot
5*16467b97STreehugger RobotThen you need to build the Perl module.
6*16467b97STreehugger Robot
7*16467b97STreehugger Robot    perl Makefile.PL
8*16467b97STreehugger Robot    make
9*16467b97STreehugger Robot
10*16467b97STreehugger RobotAfter that you need to compile the grammar using ANTLR, for example by using
11*16467b97STreehugger Robotthe antlr.bat I've added.
12*16467b97STreehugger Robot
13*16467b97STreehugger Robot    cd examples\expr
14*16467b97STreehugger Robot    ..\..\antlr Expr.g
15*16467b97STreehugger Robot
16*16467b97STreehugger RobotFinally you can run the example programs.
17