On Thu, Mar 13, 2008 at 8:34 PM, Maxime van Noppen <yabo(a)lrde.epita.fr> wrote:
Index: trunk/tests/parser/sample_5.ref
===================================================================
--- trunk/tests/parser/sample_5.ref (revision 0)
+++ trunk/tests/parser/sample_5.ref (revision 53)
@@ -0,0 +1 @@
+Program([FunDec([],"sqrt",[("arg",Var("float"))],Var("float"),[Return(Cxx("std::sqrt(arg);"))])])
Index: trunk/tests/parser/var_decl_7.ref
===================================================================
--- trunk/tests/parser/var_decl_7.ref (revision 0)
+++ trunk/tests/parser/var_decl_7.ref (revision 53)
@@ -0,0 +1 @@
+Program([VarDec([],"a",StaticFunCall("test",[Var("int")]))])
Index: trunk/tests/parser/sample_container.ref
===================================================================
--- trunk/tests/parser/sample_container.ref (revision 0)
+++ trunk/tests/parser/sample_container.ref (revision 53)
@@ -0,0 +1 @@
+Program([ConstDec([],"Container",Class,ClassVal([Accessblock(Public,[ConstDec([],"value_type",None,Var("type")),ConstDec([],"iterator",None,Var("type")),ConstDec([],"const_iterator",None,Var("type")),ConstDec([],"reference",None,Var("type")),ConstDec([],"const_reference",None,Var("type")),ConstDec([],"size_type",None,Var("type")),ConstDec(["decl"],"begin",None,FunType([],Var("iterator"))),ConstDec(["decl"],"begin",Some("const"),FunType([],Var("const_iterator"))),ConstDec(["decl"],"end",None,FunType([],Var("iterator"))),ConstDec(["decl"],"end",Some("const"),FunType([],Var("const_iterator"))),ConstDec(["decl"],"size",Some("const"),FunType([],Var("size_type"))),ConstDec(["decl"],"empty",Some("const"),FunType([],Var("bool")))])]))])
I think you may want this small script: ~pierron/mbin/diff-aterm
--
Nicolas Pierron