index 0837de4ef28f6ba05ca3dbe8f4c191e95fd0caa5..8f3edc4aec855db2d7e30c6f1b24d0f45ece44c3 100644 (file)
--- a/test.c
+++ b/test.c
#include "oberon.h"
+#include "generator.h"
#include <assert.h>
static const char source[] =
"MODULE Test;"
+ ""
+ "TYPE"
+ " MyInt = INTEGER;"
+ " MyRec = POINTER TO RECORD"
+ " a : MyInt;"
+ " next : MyRec;"
+ " END;"
+ ""
"VAR"
- " k : INTEGER;"
- " i : INTEGER;"
- " b : BOOLEAN;"
+ " r : MyRec;"
+ ""
"BEGIN"
- " k := -10 + 1;"
- " i := k;"
- " b := ~TRUE OR FALSE;"
+ " "
"END Test."
;
{
ctx = oberon_create_context();
mod = oberon_compile_module(ctx, source);
+ //mod -> begin();
+ oberon_generator_dump(ctx, "dump.txt");
oberon_destroy_context(ctx);
return 0;
}