Skip to content

Commit

Permalink
Allow show statements in cat grammar (#742)
Browse files Browse the repository at this point in the history
Signed-off-by: Hernan Ponce de Leon <[email protected]>
Co-authored-by: Hernan Ponce de Leon <[email protected]>
  • Loading branch information
hernanponcedeleon and hernan-poncedeleon authored Oct 10, 2024
1 parent 95fe0c3 commit 7ffb695
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dartagnan/src/main/antlr4/Cat.g4
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.dat3m.dartagnan.wmm.axiom.*;
}

mcm
: (NAME)? (QUOTED_STRING)? (definition | include)+ EOF
: (NAME)? (QUOTED_STRING)? (definition | include | show)+ EOF
;

definition
Expand Down Expand Up @@ -58,7 +58,11 @@ expression
;

include
: 'include' path = QUOTED_STRING
: INCLUDE path = QUOTED_STRING
;

show
: SHOW expression (AS NAME)?
;

parameterList
Expand All @@ -74,6 +78,8 @@ REC : 'rec';
AND : 'and';
AS : 'as';
TOID : 'toid';
SHOW : 'show';
INCLUDE : 'include';

ACYCLIC : 'acyclic';
IRREFLEXIVE : 'irreflexive';
Expand Down

0 comments on commit 7ffb695

Please sign in to comment.