mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-28 07:28:20 -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());
|
||||
break;
|
||||
case IDENT:
|
||||
if (tok.getIdent().equals("endloop")) {
|
||||
if (tok.getIdent().equals("end")) {
|
||||
tok.consume();
|
||||
expect(Tokenizer.Token.IDENT);
|
||||
if (!tok.getIdent().equals("loop"))
|
||||
throw newUnexpectedToken(t);
|
||||
if (!loop)
|
||||
throw newUnexpectedToken(t);
|
||||
return list.minimize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user