aboutsummaryrefslogtreecommitdiff
path: root/source/Transpiler.def
blob: 5f8c219d4ea4ff4863cf36fd786776e1b64b13c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.