added some slides
[cc1516.git] / parse.dcl
index c7d177c..c5d2724 100644 (file)
--- a/parse.dcl
+++ b/parse.dcl
@@ -1,8 +1,12 @@
 definition module parse
 
+from Data.Either import :: Either
+from Data.Maybe import :: Maybe
+from StdString import class toString
+
 import lex
+from AST import :: AST
 
-:: ParserOutput :== Either String AST
-:: AST = If | While //stub
+:: ParserOutput :== Either Error AST
 
-parse :: LexerOutput -> ParserOutput
+parser :: LexerOutput -> ParserOutput