Skip to content

Commit

Permalink
improve syntax for 'openDupPkgInv'
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 committed Sep 23, 2024
1 parent e92a034 commit ee1f467
Show file tree
Hide file tree
Showing 8 changed files with 3,212 additions and 3,224 deletions.
2 changes: 1 addition & 1 deletion src/main/antlr4/GobraLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ TRUSTED : 'trusted' -> mode(NLSEMI);
OUTLINE : 'outline';
DUPLICABLE : 'dup';
PKG_INV : 'pkgInvariant';
OPEN_DUP_SINV : 'openDupPkgInv';
OPEN_DUP_SINV : 'openDupPkgInv' -> mode(NLSEMI);
INIT_POST : 'initEnsures';
IMPORT_PRE : 'importRequires';
PROOF : 'proof';
Expand Down
2 changes: 1 addition & 1 deletion src/main/antlr4/GobraParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ghostStatement:
| fold_stmt=(FOLD | UNFOLD) predicateAccess #foldStatement
| kind=(ASSUME | ASSERT | REFUTE | INHALE | EXHALE) expression #proofStatement
| matchStmt #matchStmt_
| OPEN_DUP_SINV (IDENTIFIER) #pkgInvStatement
| OPEN_DUP_SINV #pkgInvStatement
;

// Auxiliary statements
Expand Down
1,964 changes: 983 additions & 981 deletions src/main/java/viper/gobra/frontend/GobraLexer.java

Large diffs are not rendered by default.

Loading

0 comments on commit ee1f467

Please sign in to comment.