summaryrefslogtreecommitdiff
path: root/src/ast.ml
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2013-12-06 19:53:07 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2013-12-06 19:53:07 +0100
commit185a8ea39b1dbd795aa54b7b9c82e393a9185765 (patch)
tree8dfaece32823b8ff65c2a6acadd68c23ad6453c5 /src/ast.ml
parent41149667006a5606cf142a6e73cb6748b1212045 (diff)
downloadLPC-Projet-185a8ea39b1dbd795aa54b7b9c82e393a9185765.tar.gz
LPC-Projet-185a8ea39b1dbd795aa54b7b9c82e393a9185765.zip
Corrected many bugs, improved error reporting.
Diffstat (limited to 'src/ast.ml')
-rw-r--r--src/ast.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ast.ml b/src/ast.ml
index d23b573..c204ff8 100644
--- a/src/ast.ml
+++ b/src/ast.ml
@@ -93,7 +93,10 @@ type cls = {
c_members : cls_mem list;
}
-type declaration =
+type declaration = {
+ d_loc : loc;
+ d_desc : decl_desc; }
+and decl_desc =
| DGlobal of (var_type * ident)
| DFunction of (proto * block)
| DClass of cls