L1VM - Christmas update
L1VM Christmas update
Ich veröffentlichte gestern ein Weihnachtsupdate: der neue L1VM Preprozessor “l1pre”. Mit dem Preprozessor ist es möglich einen “#include” Aufruf zu machen und Dateien in den Code einzubinden. Ich fügte ein “include-lib” Verzeichnis hinzu mit allen Bibliotheken. Dieser Ordner wird zu “~/l1vm/include/” kopiert während der Installation.
UPDATE: Jetzt kann man auch “#define” und “#func” Definitionen verwenden! Zum Beispiel ein “#define”:
#define print_n (7 0 0 0 intr0)
Und eine Funktion sieht so aus:
#func get_time (THOUR, TMIN, TSEC) :(17 THOUR TMIN TSEC intr0)
Um dieses Makro zu verwenden:
get_time (hour, min, sec)
Es gibt ein “README.txt” in dem “/prepro/” Verzeichnis im GitHub L1VM Repo!
I relased a Christmas update yesterday: the new L1VM preprocessor “l1pre”. With the preprocessor it is possible to do a “#include” call and include some files into the code. I added a “include-lib” library folder with all libraries. This folder will be copied to “~/l1vm/include/” while install.
UPDATE: now “#define” and “#func” for defines can be done too! For example a “#define”:
#define print_n (7 0 0 0 intr0)
And a function would look like this:
#func get_time (THOUR, TMIN, TSEC) :(17 THOUR TMIN TSEC intr0)
To use this function macro:
get_time (hour, min, sec)
There is a “README.txt” in the “/prepro/” folder on the GitHub L1VM repo!