diff options
Diffstat (limited to 'antlr-3.4/runtime/JavaScript/tests/functional/t031emptyAlt.g')
-rwxr-xr-x | antlr-3.4/runtime/JavaScript/tests/functional/t031emptyAlt.g | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/antlr-3.4/runtime/JavaScript/tests/functional/t031emptyAlt.g b/antlr-3.4/runtime/JavaScript/tests/functional/t031emptyAlt.g new file mode 100755 index 0000000..b1a744e --- /dev/null +++ b/antlr-3.4/runtime/JavaScript/tests/functional/t031emptyAlt.g @@ -0,0 +1,16 @@ +grammar t031emptyAlt; +options { + language = JavaScript; +} + +r + : NAME + ( {this.cond}?=> WS+ NAME + | + ) + EOF + ; + +NAME: ('a'..'z') ('a'..'z' | '0'..'9')+; +NUMBER: ('0'..'9')+; +WS: ' '+; |