aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t049treeparseriWalker.g
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/JavaScript/tests/functional/t049treeparseriWalker.g')
-rwxr-xr-xruntime/JavaScript/tests/functional/t049treeparseriWalker.g8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/JavaScript/tests/functional/t049treeparseriWalker.g b/runtime/JavaScript/tests/functional/t049treeparseriWalker.g
new file mode 100755
index 0000000..1155e9c
--- /dev/null
+++ b/runtime/JavaScript/tests/functional/t049treeparseriWalker.g
@@ -0,0 +1,8 @@
+tree grammar t049treeparseriWalker;
+options {
+ language=JavaScript;
+ ASTLabelType=CommonTree;
+}
+a @init {var x=0;} : ^(ID {x=1;} {x=2;} INT?)
+ {this.capture($ID+", "+x);}
+ ;