Add A command line parsing procedure

This commit is contained in:
2025-05-31 11:27:23 +02:00
parent a93d12eb50
commit 72e545225b
11 changed files with 386 additions and 245 deletions

View File

@ -1,6 +1,16 @@
DEFINITION MODULE Transpiler;
FROM Lexer IMPORT PLexer;
FROM FIO IMPORT File;
FROM Lexer IMPORT PLexer, Lexer;
TYPE
TranspilerContext = RECORD
indentation: CARDINAL;
output: File;
lexer: PLexer
END;
PTranspilerContext = POINTER TO TranspilerContext;
PROCEDURE transpile(ALexer: PLexer);