#include "oberon.h" #include "generator.h" #include static const char source[] = "MODULE Test;" "" "TYPE" " MyInt = INTEGER;" " MyRec = POINTER TO RECORD" " a : MyInt;" " next : MyRec;" " END;" "" "VAR" " r : MyRec;" "" "BEGIN" " " "END Test." ; static oberon_context_t * ctx; static oberon_module_t * mod; int main(int argc, char ** argv) { ctx = oberon_create_context(); mod = oberon_compile_module(ctx, source); //mod -> begin(); oberon_generator_dump(ctx, "dump.txt"); oberon_destroy_context(ctx); return 0; }