mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-30 16:30:04 -04:00
better test data parser to allow multi row repeats
This commit is contained in:
parent
d3110c699b
commit
3d6000abe6
@ -84,8 +84,11 @@ public class Parser {
|
|||||||
list.add(parseLine());
|
list.add(parseLine());
|
||||||
break;
|
break;
|
||||||
case IDENT:
|
case IDENT:
|
||||||
if (tok.getIdent().equals("endloop")) {
|
if (tok.getIdent().equals("end")) {
|
||||||
tok.consume();
|
tok.consume();
|
||||||
|
expect(Tokenizer.Token.IDENT);
|
||||||
|
if (!tok.getIdent().equals("loop"))
|
||||||
|
throw newUnexpectedToken(t);
|
||||||
if (!loop)
|
if (!loop)
|
||||||
throw newUnexpectedToken(t);
|
throw newUnexpectedToken(t);
|
||||||
return list.minimize();
|
return list.minimize();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user