X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=main.icl;h=ef5566a554625757fafa3cb9fb5629990f40df8e;hb=4766205e7035a58c8a1fa1557b6e14577ed26f32;hp=90624e85258baba1f87753db980c6c1610bdcae1;hpb=e3f049be4fb2ed9b7f675f06a9a525c81af9946c;p=cc1516.git diff --git a/main.icl b/main.icl index 90624e8..ef5566a 100644 --- a/main.icl +++ b/main.icl @@ -3,14 +3,24 @@ module main import StdFile import StdBool +import parse import lex -Start :: *World -> (LexerOutput, *World) +//Start :: *World -> (ParserOutput, *World) +Start = "" +//Start w +//# (out, w) = stdio w +//# (toparse, out) = readEntireFile out +//# (_, w) = fclose out w +//= (lexer toparse, w) +/* +Start :: *World -> (ParserOutput, *World) Start w # (out, w) = stdio w # (toparse, out) = readEntireFile out # (_, w) = fclose out w -= (lexer toparse, w) += (parse (lexer toparse), w) +*/ readEntireFile :: *File -> *([Char], *File) readEntireFile f