Sign in
android
/
platform
/
external
/
antlr
/
refs/heads/android15-tests-release
/
.
/
runtime
/
JavaScript
/
tests
/
functional
/
t058rewriteAST32.g
blob: cc3c3aaab90d6fa39189417116d74578e1ada362 [
file
] [
log
] [
blame
] [
edit
]
grammar t058rewriteAST32
;
options
{
language
=
JavaScript
;
output
=
AST
;}
tokens
{
BLOCK
;}
a
:
lc
=
'{'
ID
+
'}'
->
^(
BLOCK
[
$lc
]
ID
+)
;
type
:
'int'
|
'float'
;
ID
:
'a'
..
'z'
+
;
INT
:
'0'
..
'9'
+;
WS
:
(
' '
|
'\n'
)
{
$channel
=
HIDDEN
;}
;