lexer with line numbers
[cc1516.git] / main.icl
index 90624e8..67ab090 100644 (file)
--- a/main.icl
+++ b/main.icl
@@ -4,13 +4,22 @@ import StdFile
 import StdBool
 
 import lex
+import parse
 
-Start :: *World -> (LexerOutput, *World)
+//Start :: *World -> (ParserOutput, *World)
 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
+= (parse (lexer toparse), w)
+*/
 
 readEntireFile :: *File -> *([Char], *File)
 readEntireFile f