Sign in
android
/
platform
/
external
/
antlr
/
caea28a08126f47fb6acab215f1eba2e8d678a09
/
.
/
runtime
/
JavaScript
/
tests
/
functional
/
t057autoAST42.g
blob: 5ce61c6d224faa51d52ff6c7f6617284b3427a29 [
file
] [
log
] [
blame
]
grammar t057autoAST42
;
options
{
language
=
JavaScript
;
output
=
AST
;}
a returns
[
result
]
:
x
+=
b
!
x
+=
b
{
$result
=
"1st x="
+
$x
[
0
].
toStringTree
()+
','
;
}
;
b
:
ID
;
ID
:
'a'
..
'z'
+
;
INT
:
'0'
..
'9'
+;
WS
:
(
' '
|
'\n'
)
{
$channel
=
HIDDEN
;}
;