repositories
/
cc1516.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c1945d
)
lex
author
Mart Lubbers
<mart@martlubbers.net>
Mon, 29 Feb 2016 19:24:33 +0000
(20:24 +0100)
committer
Mart Lubbers
<mart@martlubbers.net>
Mon, 29 Feb 2016 19:24:33 +0000
(20:24 +0100)
src/lex.icl
patch
|
blob
|
history
diff --git
a/src/lex.icl
b/src/lex.icl
index
a6f31ab
..
8dc82e9
100644
(file)
--- a/
src/lex.icl
+++ b/
src/lex.icl
@@
-15,7
+15,7
@@
lexer r = case runParser lexProgram r of
(Left e, _) = Left $ toString e
lexProgram :: Parser Char [Token]
-lexProgram = some lexToken >>= \ts->pure (map (\t->(0, 0, t)) ts)
+lexProgram = some lexToken
<* eof
>>= \ts->pure (map (\t->(0, 0, t)) ts)
lexToken :: Parser Char TokenValue
lexToken =