better test data parser to allow multi row repeats

This commit is contained in:
hneemann 2017-04-19 15:55:17 +02:00
parent d3110c699b
commit 3d6000abe6
3 changed files with 11 additions and 8 deletions

View File

@ -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();