Sign in
android
/
platform
/
external
/
antlr
/
refs/heads/tools_r21
/
.
/
antlr-3.4
/
runtime
/
JavaScript
/
tests
/
functional
/
t058rewriteAST54.g
blob: 2df71eefbe2d83d26f3d32869d69769cad312bc4 [
file
] [
log
] [
blame
]
grammar t058rewriteAST54
;
options
{
language
=
JavaScript
;
output
=
AST
;}
tokens
{
VAR
;}
a
:
first
=
ID others
+=
ID
*
->
$first VAR $others
+
;
op
:
'+'
|
'-'
;
ID
:
'a'
..
'z'
+
;
INT
:
'0'
..
'9'
+;
WS
:
(
' '
|
'\n'
)
{
$channel
=
HIDDEN
;}
;