aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t049treeparsere.g
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/JavaScript/tests/functional/t049treeparsere.g')
-rwxr-xr-xruntime/JavaScript/tests/functional/t049treeparsere.g11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/JavaScript/tests/functional/t049treeparsere.g b/runtime/JavaScript/tests/functional/t049treeparsere.g
new file mode 100755
index 0000000..7ec071a
--- /dev/null
+++ b/runtime/JavaScript/tests/functional/t049treeparsere.g
@@ -0,0 +1,11 @@
+grammar t049treeparsere;
+options {
+ language=JavaScript;
+ output=AST;
+}
+a : ID INT+ PERIOD;
+ID : 'a'..'z'+ ;
+INT : '0'..'9'+;
+SEMI : ';' ;
+PERIOD : '.' ;
+WS : (' '|'\n') {$channel=HIDDEN;} ;