Don't require the module name after end

This commit is contained in:
2025-06-03 12:14:59 +02:00
parent 1983ef8e71
commit 82f0d40a56
10 changed files with 397 additions and 223 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.