add new unit test corresponding to 2e06ed8360
This commit is contained in:
parent
0ff58068f7
commit
441587e859
|
@ -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 ;
|
||||
>>
|
Loading…
Reference in New Issue