-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sylvain Leclerc <[email protected]>
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Expression grammar definition | ||
|
||
[Expr.g4](Expr.g4) defines the grammar for mathematical expressions | ||
use for defining constraints, objective, etc. | ||
|
||
[ANTLR](https://www.antlr.org) needs to be used to generate the associated | ||
parser code, which must be placed in [andromede.expression.parsing.antlr](/src/andromede/expression/parsing/antlr) | ||
package. | ||
|
||
ANTLR may be used on the command line, or for example through | ||
the associated PyCharm plugin. | ||
|
||
We use the visitor and not the listener in order to translate ANTLR AST | ||
into our own AST, so the options `-visitor` and `-no-listener` need to | ||
to be used. |