Skip to content

Commit

Permalink
Proparse: support for serializable dataset
Browse files Browse the repository at this point in the history
Issue #1141
  • Loading branch information
gquerret committed Sep 23, 2024
1 parent 8405397 commit ea6c406
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ buttonOption:
;

defineDatasetStatement:
DEFINE defineShare? ( PRIVATE | PROTECTED | STATIC )*
DEFINE defineShare? ( PRIVATE | PROTECTED | STATIC | SERIALIZABLE | NONSERIALIZABLE )*
DATASET identifier
namespaceUri? namespacePrefix? xmlNodeName? serializeName? xmlNodeType? SERIALIZEHIDDEN?
REFERENCEONLY?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,10 @@ public void testTenantKeywords() {
public void testShorthandOperators() {
testNewSyntax("12.3/operators.p");
}

@Test
public void testSerializable() {
testNewSyntax("12.x/SerDS.cls");
}

}
9 changes: 9 additions & 0 deletions proparse/src/test/resources/data/newsyntax/12.x/SerDS.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class SerDS serializable:

define private serializable temp-table tt1 no-undo
field fld1 as integer
index idx1 is primary unique fld1.

define serializable dataset ds1 for tt1.

end class.

0 comments on commit ea6c406

Please sign in to comment.