X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=parse.dcl;h=c5d2724366bd47ac1bb2e48c67dd335bdd809b24;hb=fc38bf6ef5716c685ac316fdf3c42e7afce327eb;hp=c7d177ccd7c2aa31b6c7243f9c8f36d61137d08c;hpb=953019d8255b9779d67fb1cb6c8946f589a24936;p=cc1516.git diff --git a/parse.dcl b/parse.dcl index c7d177c..c5d2724 100644 --- 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