Start a Modula-2 experiment

This commit is contained in:
2022-06-05 23:43:45 +02:00
parent 5490f6ce1c
commit f29e68ec93
23 changed files with 994 additions and 1605 deletions

18
boot/Compiler.mod Normal file
View File

@@ -0,0 +1,18 @@
MODULE Compiler;
FROM FIO IMPORT StdIn;
FROM SYSTEM IMPORT ADR;
FROM Lexer IMPORT Lexer, LexerDestroy, LexerInitialize;
FROM Transpiler IMPORT Transpile;
VAR
ALexer: Lexer;
BEGIN
LexerInitialize(ADR(ALexer), StdIn);
Transpile(ADR(ALexer));
LexerDestroy(ADR(ALexer))
END Compiler.