X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=test.c;h=2bea391195d42f982cbaf1688e999242ee771586;hb=7f3e5aeb0348e6c0af28869bad6acc13fe483177;hp=7149026862087a8f63577916ffd361e8b89b08ef;hpb=c3449e207b5e1e85ecea55975163a4dc6b986962;p=dsw-obn.git diff --git a/test.c b/test.c index 7149026..2bea391 100644 --- a/test.c +++ b/test.c @@ -1,17 +1,20 @@ #include "oberon.h" #include -static oberon_type_t integer = { "INTEGER", OBERON_TYPE_INTEGER, sizeof(int) }; -static oberon_type_t boolean = { "BOOLEAN", OBERON_TYPE_BOOLEAN, sizeof(int) }; - static const char source[] = "MODULE Test;" "VAR" " k : INTEGER;" " i : INTEGER;" " b : BOOLEAN;" + "" + "PROCEDURE Tier;" + "BEGIN" + " " + "END Tier;" + "" "BEGIN" - " k := 10;" + " k := 1;" " i := k;" " b := TRUE;" "END Test." @@ -24,9 +27,8 @@ int main(int argc, char ** argv) { ctx = oberon_create_context(); - oberon_register_global_type(ctx, &integer); - oberon_register_global_type(ctx, &boolean); mod = oberon_compile_module(ctx, source); + //mod -> begin(); oberon_destroy_context(ctx); return 0; }