add new unit test corresponding to 2e06ed8360

This commit is contained in:
parrt 2015-06-16 16:44:02 -07:00
parent 0ff58068f7
commit 441587e859
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
TestType() ::= "Parser"
Options ::= [
"Debug": false
]
Grammar ::= [
"T": {<grammar("T")>}
]
Input() ::= "( ~FORCE_ERROR~ "
Rule() ::= "a"
Output() ::= <<
>>
Errors() ::= <<
line 1:2 mismatched input '~FORCE_ERROR~' expecting ')'<\n>
>>
grammar(grammarName) ::= <<
grammar <grammarName>;
stat: ( '(' expr? ')' )? EOF ;
expr: ID '=' STR ;
ERR : '~FORCE_ERROR~' ;
ID : [a-zA-Z]+ ;
STR : '"' ~["]* '"' ;
WS : [ \t\r\n]+ -> skip ;
>>