From 23b6f074c7f560d701e9a1fa5713a965af3a18a3 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 2 Dec 2025 10:22:06 +0100 Subject: Merge GCC frontend into the branch --- source/Transpiler.def | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 source/Transpiler.def (limited to 'source/Transpiler.def') diff --git a/source/Transpiler.def b/source/Transpiler.def new file mode 100644 index 0000000..5f8c219 --- /dev/null +++ b/source/Transpiler.def @@ -0,0 +1,20 @@ +DEFINITION MODULE Transpiler; + +FROM FIO IMPORT File; + +FROM Common IMPORT ShortString; +FROM Lexer IMPORT PLexer, Lexer; +FROM Parser IMPORT PAstModule; + +TYPE + TranspilerContext = RECORD + input_name: ShortString; + output: File; + definition: File; + indentation: CARDINAL + END; + PTranspilerContext = POINTER TO TranspilerContext; + +PROCEDURE transpile(ast_module: PAstModule; output: File; definition: File; input_name: ShortString); + +END Transpiler. -- cgit v1.2.3