Start a Modula-2 experiment

This commit is contained in:
2022-06-11 22:52:13 +02:00
parent f5c4a27a6d
commit 910261b408
28 changed files with 844 additions and 2574 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.