diff options
Diffstat (limited to 'runtime/JavaScript/tests/functional/t034tokenLabelPropertyRef.g')
-rwxr-xr-x | runtime/JavaScript/tests/functional/t034tokenLabelPropertyRef.g | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/runtime/JavaScript/tests/functional/t034tokenLabelPropertyRef.g b/runtime/JavaScript/tests/functional/t034tokenLabelPropertyRef.g new file mode 100755 index 0000000..bb524b2 --- /dev/null +++ b/runtime/JavaScript/tests/functional/t034tokenLabelPropertyRef.g @@ -0,0 +1,33 @@ +grammar t034tokenLabelPropertyRef; +options { + language = JavaScript; +} + +@header { +var xlog = []; +} + +a: t=A + { + xlog.push($t.text); + xlog.push($t.type); + xlog.push($t.line); + xlog.push($t.pos); + xlog.push($t.channel); + xlog.push($t.index); + } + ; + +A: 'a'..'z'; + +WS : + ( ' ' + | '\t' + | ( '\n' + | '\r\n' + | '\r' + ) + )+ + { $channel = org.antlr.runtime.Token.HIDDEN_CHANNEL; } + ; + |