Sign in
android
/
platform
/
external
/
antlr
/
324c4644fee44b9898524c09511bd33c3f12e2df
/
.
/
antlr-3.4
/
runtime
/
JavaScript
/
tests
/
functional
/
t058rewriteAST32.g
blob: cc3c3aaab90d6fa39189417116d74578e1ada362 [
file
] [
log
] [
blame
]
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
;}
;