index 0837de4ef28f6ba05ca3dbe8f4c191e95fd0caa5..2c2966752c60839008da78f4ce6eec82f9154e3a 100644 (file)
--- a/test.c
+++ b/test.c
#include "oberon.h"
+#include "generator.h"
#include <assert.h>
static const char source[] =
"MODULE Test;"
"VAR"
- " k : INTEGER;"
" i : INTEGER;"
- " b : BOOLEAN;"
- "BEGIN"
- " k := -10 + 1;"
- " i := k;"
- " b := ~TRUE OR FALSE;"
+ " j : INTEGER;"
+ ""
+ "PROCEDURE Tier(VAR x : INTEGER);"
+ "BEGIN;"
+ " x := i;"
+ "END Tier;"
+ ""
+ "BEGIN;"
+ " i := 666;"
+ " Tier(j);"
"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;
}