repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
werkt
[cc1516.git]
/
main.icl
diff --git
a/main.icl
b/main.icl
index
ced5b0a
..
ef5566a
100644
(file)
--- a/
main.icl
+++ b/
main.icl
@@
-3,15
+3,24
@@
module main
import StdFile
import StdBool
import StdFile
import StdBool
-import lex
import parse
import parse
+import lex
+//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
= (parse (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
readEntireFile :: *File -> *([Char], *File)
readEntireFile f