summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-17 17:34:40 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-17 17:34:40 +0200
commit44c43a703e2d996ac80318a67c7ba3a828dca19b (patch)
tree8571efbf3c676abbcce9bfd9d1b817ec98dac950 /instr-to-kodkod/parser/PropertyLexer.g4
parentc5caca06e411066828cec2a6008c126d64ffabb6 (diff)
Starting to work on a parser for the properties.
Diffstat (limited to 'instr-to-kodkod/parser/PropertyLexer.g4')
-rw-r--r--instr-to-kodkod/parser/PropertyLexer.g413
1 files changed, 13 insertions, 0 deletions
diff --git a/instr-to-kodkod/parser/PropertyLexer.g4 b/instr-to-kodkod/parser/PropertyLexer.g4
new file mode 100644
index 0000000..27f1bca
--- /dev/null
+++ b/instr-to-kodkod/parser/PropertyLexer.g4
@@ -0,0 +1,13 @@
+lexer grammar PropertyLexer;
+
+TAG_EXISTING_KW: '(tag_existing';
+AND_OPERATOR_KW: '(and';
+OR_OPERATOR_KW: '(or';
+NOT_OPERATOR_KW: '(not';
+EXISTS_OPERATOR_KW: '(exists';
+FORALL_OPERATOR_KW: '(forall';
+ID: [a-zA-Z0-9_]+;
+L_PAREN : '(';
+R_PAREN : ')';
+
+WS: [ \t\r\n]+ -> skip;