1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
docs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
examples Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
lib/ANTLR Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
t Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
tools Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
.p4ignore Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Build.PL Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Changes Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
INSTALL Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
MANIFEST Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
MANIFEST.SKIP Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Makefile.PL Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
port.yml Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README

ANTLR::Runtime

This is the Perl 5 runtime for ANTLR.  It is currently under early
development.  Most parts are not working yet, and some of those that are need
to catch up with the current development version.  The good news is that some
parts are working, as illustrated by the examples.  You'd probably want to
take a look at examples/expr/.


KNOWN ISSUES
============

* Perl's syntax clashes with ANTLR's StringTemplate ('%') and variable ('$')
syntax.  Expect error messages like the following.

error(146): Expr.g:10:10: invalid StringTemplate % shorthand syntax: '%memory'
error(114): Expr.g:18:9: attribute is not a token, parameter, or return value: memory
error(114): Expr.g:36:9: attribute is not a token, parameter, or return value: v

Currently, it's best to check the syntax of the generated code, like so:

$ perl -c ExprLexer.pm
ExprLexer.pm syntax OK

$ perl -c ExprParser.pm
ExprParser.pm syntax OK

Or use the lexer/parser in an example.