sdlang-dev / SDL

SDL (Simple Declarative Language) for java
11 stars 1 forks source link

parser cannot handle braces without newline #5

Closed SingingBush closed 6 years ago

SingingBush commented 6 years ago

the following will parse:

matrix {
 8 64 87; 31 34 18 
}

however putting it on one line like this will not: matrix { 8 64 87; 31 34 18 }

this may be fine, will need to check spec or how other SDL parsers handle this scenario

SingingBush commented 6 years ago

as per comment in linked issue. For a single line the syntax should be matrix {; 8 64 87; 31 34 18 }