Name Date Size #Lines LOC

..--

docs/H25-Apr-2025-6736

examples/H25-Apr-2025-401298

lib/ANTLR/H25-Apr-2025-3,3472,268

t/H25-Apr-2025-971738

tools/H25-Apr-2025-227151

.p4ignoreH A D25-Apr-202566 98

Build.PLH A D25-Apr-2025552 2119

ChangesHD25-Apr-20250

INSTALLHD25-Apr-20250

MANIFESTH A D25-Apr-20251.5 KiB6059

MANIFEST.SKIPH A D25-Apr-202595 118

Makefile.PLH A D25-Apr-2025779 2925

READMEH A D25-Apr-2025959 2919

port.ymlH A D25-Apr-2025113 54

README

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