Don't require the module name after end

This commit is contained in:
2025-06-03 12:14:25 +02:00
parent 23885e5b95
commit ff547a295d
7 changed files with 378 additions and 217 deletions

View File

@ -2,16 +2,17 @@ DEFINITION MODULE Transpiler;
FROM FIO IMPORT File;
FROM Common IMPORT ShortString;
FROM Lexer IMPORT PLexer, Lexer;
TYPE
TranspilerContext = RECORD
indentation: CARDINAL;
input_name: ShortString;
output: File;
lexer: PLexer
END;
PTranspilerContext = POINTER TO TranspilerContext;
PROCEDURE transpile(lexer: PLexer; output: File);
PROCEDURE transpile(lexer: PLexer; output: File; input_name: ShortString);
END Transpiler.