Skip to content

Commit

Permalink
now handles sets containing newlines, refs #5
Browse files Browse the repository at this point in the history
  • Loading branch information
godber committed Jan 6, 2015
1 parent d876a6a commit 39e8f27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion antlr_grammar/ODLv21.g4
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ sequence_2D
// NOTE: Despite the grammar accepting any scalar value in sets, the PDS only
// accepts SYMBOL and INTEGER values in sets. See 12.5.6.1
set_value
: '{' scalar_value (',' scalar_value)* '}'
: '{' scalar_value (NEWLINE)? (',' (NEWLINE)? scalar_value (NEWLINE)? )* '}'
| '{' '}'
;

Expand Down
9 changes: 9 additions & 0 deletions antlr_grammar/data/set2.lbl
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ SYM_SET1 = {ONE,
SYM_SET2 = {ONE,
TWO,
THREE}
SYM_SET3 = {ONE
,TWO
,THREE}
SYM_SET4 = {ONE
,
TWO
,
THREE
}
END

0 comments on commit 39e8f27

Please sign in to comment.