summaryrefslogtreecommitdiff
path: root/frontend/ast.ml
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ansys.com>2014-06-13 17:45:00 +0200
committerAlex Auvolat <alex.auvolat@ansys.com>2014-06-13 17:45:00 +0200
commit617231f214ace1bc3a2aa48e18db319575166047 (patch)
tree83b05fa9da1e77c91ded9145dcd07e8432252b58 /frontend/ast.ml
parentdedc98b0c14262c53e8573d7fe1dcaa370e43fb5 (diff)
downloadscade-analyzer-617231f214ace1bc3a2aa48e18db319575166047.tar.gz
scade-analyzer-617231f214ace1bc3a2aa48e18db319575166047.zip
Begin of new interpret with more imperative concepts. Scope activation 'n stuff.
Diffstat (limited to 'frontend/ast.ml')
-rw-r--r--frontend/ast.ml34
1 files changed, 17 insertions, 17 deletions
diff --git a/frontend/ast.ml b/frontend/ast.ml
index 8392bc6..fbf099c 100644
--- a/frontend/ast.ml
+++ b/frontend/ast.ml
@@ -62,18 +62,18 @@ type var_def = bool * (id ext) * typ
type automaton = id * state ext list * id list
and state = {
- initial : bool;
- name : id;
- locals : var_def list;
- body : eqn ext list;
- until : transition list;
+ initial : bool;
+ st_name : id;
+ st_locals : var_def list;
+ body : eqn ext list;
+ until : transition list;
}
and transition = (expr ext) * (id ext) * bool (* bool : does it reset ? *)
and activate_block = {
- id : id;
- locals : var_def list;
- body : eqn ext list;
+ act_id : id;
+ act_locals : var_def list;
+ body : eqn ext list;
}
and activate_if =
| AST_activate_body of activate_block
@@ -82,23 +82,23 @@ and activate = activate_if * id list
and eqn =
| AST_assign of (id ext list) * (expr ext)
- | AST_guarantee of (id ext) * (expr ext)
| AST_assume of (id ext) * (expr ext)
+ | AST_guarantee of (id ext) * (expr ext)
| AST_automaton of automaton
| AST_activate of activate
type node_decl = {
- name : id;
- args : var_def list;
- ret : var_def list;
- var : var_def list;
- body : eqn ext list;
+ n_name : id;
+ args : var_def list;
+ ret : var_def list;
+ var : var_def list;
+ body : eqn ext list;
}
type const_decl = {
- name : id;
- typ : typ;
- value : expr ext;
+ c_name : id;
+ typ : typ;
+ value : expr ext;
}
type toplevel =