Sign in
ara-mdk
/
platform
/
external
/
antlr
/
refs/heads/master
/
.
/
antlr-3.4
/
runtime
/
JavaScript
/
tests
/
functional
/
t058rewriteAST33.g
blob: e475463f0ff17d818926a326055fc884d560ced4 [
file
] [
log
] [
blame
]
grammar t058rewriteAST33
;
options
{
language
=
JavaScript
;
output
=
AST
;}
tokens
{
BLOCK
;}
a
:
lc
=
'{'
ID
+
'}'
->
^(
BLOCK
[
$lc
,
"block"
]
ID
+)
;
type
:
'int'
|
'float'
;
ID
:
'a'
..
'z'
+
;
INT
:
'0'
..
'9'
+;
WS
:
(
' '
|
'\n'
)
{
$channel
=
HIDDEN
;}
;