diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-10 10:11:16 +0100 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-10 10:11:16 +0100 |
commit | d9fab442401005b49b9221b9d897501fef9a4d8d (patch) | |
tree | ff9fa0535f91d8d160c6e7360f256664d1b4169e /src/ast.mli | |
parent | 8f1093f0e00f9b1df7ce343a879303fd56a95d08 (diff) | |
download | LPC-Projet-d9fab442401005b49b9221b9d897501fef9a4d8d.tar.gz LPC-Projet-d9fab442401005b49b9221b9d897501fef9a4d8d.zip |
Nothing interesting to see yet.
Diffstat (limited to 'src/ast.mli')
-rw-r--r-- | src/ast.mli | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ast.mli b/src/ast.mli new file mode 100644 index 0000000..557b3f6 --- /dev/null +++ b/src/ast.mli @@ -0,0 +1,29 @@ + +(* Syntaxe abstraite pour mini-C++ *) + +(* rien à voir pour l'instant *) + +type ident = string + +type binop = + | Equal | NotEqual + | Lt | Le | Gt | Ge + | Add | Sub | Mul | Div | Modulo + | Land | Lor + +type unop = + | PreIncr | PostIncr | PreDecr | PostDecr + | Ref | Deref + | Not + | Minus | Plus + +type expr = + | EBinop of expr * binop * expr + | EUnary of unop * expr + | EAssign of expr * expr + | EIntConst of int + | EBoolConst of bool + | EThis + | ENull + | EMem of expr * ident + |