Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sarah.grebing
ProofScriptParser
Commits
09cf4838
Commit
09cf4838
authored
Jul 18, 2017
by
Sarah Grebing
Browse files
Parser-Erweiterung substitution
parent
11f21a84
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/antlr4/edu/kit/formal/proofscriptparser/ScriptLanguage.g4
View file @
09cf4838
...
...
@@ -47,6 +47,7 @@ expression
:
MINUS expression #exprNegate
| NOT expression #exprNot
| expression '[' substExpressionList ']' #exprSubst
| expression MUL expression #exprMultiplication
| <assoc=right> expression DIV expression #exprDivision
| expression op=(PLUS|MINUS) expression #exprLineOperators
...
...
@@ -61,6 +62,12 @@ expression
| matchPattern #exprMatch
;
substExpressionList
:
scriptVar '/' expression (',' substExpressionList)*
;
literals :
ID #literalID
| DIGITS #literalDigits
...
...
@@ -165,6 +172,7 @@ DEDENT : '}' ;
SEMICOLON : ';' ;
COLON : ':' ;
STRING_LITERAL
: '\'' ('\'\'' | ~ ('\''))* '\''
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment