Home | History | Annotate | only in /external/antlr/antlr-3.4/runtime/Perl5
Up to higher level directory
NameDateSize
.p4ignore03-Dec-201466
Build.PL03-Dec-2014552
Changes03-Dec-20140
docs/03-Dec-2014
examples/03-Dec-2014
INSTALL03-Dec-20140
lib/03-Dec-2014
Makefile.PL03-Dec-2014779
MANIFEST03-Dec-20141.5K
MANIFEST.SKIP03-Dec-201495
port.yml03-Dec-2014113
README03-Dec-2014959
t/03-Dec-2014
tools/03-Dec-2014

README

      1 ANTLR::Runtime
      2 
      3 This is the Perl 5 runtime for ANTLR.  It is currently under early
      4 development.  Most parts are not working yet, and some of those that are need
      5 to catch up with the current development version.  The good news is that some
      6 parts are working, as illustrated by the examples.  You'd probably want to
      7 take a look at examples/expr/.
      8 
      9 
     10 KNOWN ISSUES
     11 ============
     12 
     13 * Perl's syntax clashes with ANTLR's StringTemplate ('%') and variable ('$')
     14 syntax.  Expect error messages like the following.
     15 
     16 error(146): Expr.g:10:10: invalid StringTemplate % shorthand syntax: '%memory'
     17 error(114): Expr.g:18:9: attribute is not a token, parameter, or return value: memory
     18 error(114): Expr.g:36:9: attribute is not a token, parameter, or return value: v
     19 
     20 Currently, it's best to check the syntax of the generated code, like so:
     21 
     22 $ perl -c ExprLexer.pm
     23 ExprLexer.pm syntax OK
     24 
     25 $ perl -c ExprParser.pm
     26 ExprParser.pm syntax OK
     27 
     28 Or use the lexer/parser in an example.
     29