repositories
/
cc1516.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75ac4a1
)
Yard, still struggling with Clean build system
author
pimjager
<pim@pimjager.nl>
Fri, 26 Feb 2016 12:34:33 +0000
(13:34 +0100)
committer
pimjager
<pim@pimjager.nl>
Fri, 26 Feb 2016 12:34:33 +0000
(13:34 +0100)
parse.dcl
patch
|
blob
|
history
parse.icl
patch
|
blob
|
history
diff --git
a/parse.dcl
b/parse.dcl
index
c7d177c
..
a3640fa
100644
(file)
--- a/
parse.dcl
+++ b/
parse.dcl
@@
-4,5
+4,6
@@
import lex
:: ParserOutput :== Either String AST
:: AST = If | While //stub
+:: Error = ParseException
parse :: LexerOutput -> ParserOutput
diff --git
a/parse.icl
b/parse.icl
index
3344e27
..
1a7fb85
100644
(file)
--- a/
parse.icl
+++ b/
parse.icl
@@
-1,9
+1,10
@@
implementation module parse
import StdString
+import yard
import lex
parse :: LexerOutput -> ParserOutput
parse (Left e) = Left ("Lexer error: " +++ e)
-parse (Right r) = Left "Parser not yet implemented"
+parse (Right r) = Left "Parser not yet implemented"
\ No newline at end of file