Add A command line parsing procedure

This commit is contained in:
2025-05-31 11:27:23 +02:00
parent a93d12eb50
commit 092bc06f6b
10 changed files with 122 additions and 0 deletions

View File

@ -5,11 +5,15 @@ FROM SYSTEM IMPORT ADR;
FROM Lexer IMPORT Lexer, lexer_destroy, lexer_initialize;
FROM Transpiler IMPORT transpile;
FROM CommandLineInterface IMPORT PCommandLine, parse_command_line;
VAR
lexer: Lexer;
command_line: PCommandLine;
BEGIN
command_line := parse_command_line();
lexer_initialize(ADR(lexer), StdIn);
transpile(ADR(lexer));