diff --git a/constants/Constants.Mod b/constants/Constants.Mod new file mode 100644 index 0000000..74ad7c4 --- /dev/null +++ b/constants/Constants.Mod @@ -0,0 +1,14 @@ +MODULE constants; + +IMPORT Out; + +CONST + s = "if it moves, compile it!"; + n = 42; + m = n * 2; + +BEGIN + Out.String(s); Out.Ln; + Out.Int(n, 0); Out.Ln; + Out.Int(m, 0); Out.Ln; +END constants. diff --git a/constants/Makefile b/constants/Makefile new file mode 100644 index 0000000..78d005f --- /dev/null +++ b/constants/Makefile @@ -0,0 +1,10 @@ +VOC = /opt/voc/bin/voc + +all: + $(VOC) -m Constants.Mod + +clean: + rm *.c + rm *.h + rm *.o + rm *.sym