Skip to content

Commit

Permalink
adapted parser to parse adts without field names
Browse files Browse the repository at this point in the history
  • Loading branch information
Felalolf committed Sep 29, 2023
1 parent 4be9341 commit 49a08a0
Show file tree
Hide file tree
Showing 14 changed files with 3,094 additions and 2,831 deletions.
4 changes: 3 additions & 1 deletion src/main/antlr4/GobraParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ domainClause: FUNC IDENTIFIER signature | AXIOM L_CURLY expression eos R_CURLY;

adtType: ADT L_CURLY (adtClause eos)* R_CURLY;

adtClause: IDENTIFIER L_CURLY (fieldDecl eos)* R_CURLY;
adtClause: IDENTIFIER L_CURLY (adtFieldDecl eos)* R_CURLY;

adtFieldDecl: identifierList? type_;

ghostSliceType: GHOST L_BRACKET R_BRACKET elementType;

Expand Down
634 changes: 319 additions & 315 deletions src/main/java/viper/gobra/frontend/GobraLexer.java

Large diffs are not rendered by default.

Loading

0 comments on commit 49a08a0

Please sign in to comment.