From 185a8ea39b1dbd795aa54b7b9c82e393a9185765 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Fri, 6 Dec 2013 19:53:07 +0100 Subject: Corrected many bugs, improved error reporting. --- src/ast.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ast.ml') 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 -- cgit v1.2.3