Skip to content

Commit 7ffb695

Browse files
Allow show statements in cat grammar (#742)
Signed-off-by: Hernan Ponce de Leon <[email protected]> Co-authored-by: Hernan Ponce de Leon <[email protected]>
1 parent 95fe0c3 commit 7ffb695

File tree

1 file changed

+8
-2
lines changed
  • dartagnan/src/main/antlr4

1 file changed

+8
-2
lines changed

dartagnan/src/main/antlr4/Cat.g4

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.dat3m.dartagnan.wmm.axiom.*;
55
}
66

77
mcm
8-
: (NAME)? (QUOTED_STRING)? (definition | include)+ EOF
8+
: (NAME)? (QUOTED_STRING)? (definition | include | show)+ EOF
99
;
1010

1111
definition
@@ -58,7 +58,11 @@ expression
5858
;
5959

6060
include
61-
: 'include' path = QUOTED_STRING
61+
: INCLUDE path = QUOTED_STRING
62+
;
63+
64+
show
65+
: SHOW expression (AS NAME)?
6266
;
6367

6468
parameterList
@@ -74,6 +78,8 @@ REC : 'rec';
7478
AND : 'and';
7579
AS : 'as';
7680
TOID : 'toid';
81+
SHOW : 'show';
82+
INCLUDE : 'include';
7783

7884
ACYCLIC : 'acyclic';
7985
IRREFLEXIVE : 'irreflexive';

0 commit comments

Comments
 (0)