repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lexen zonder comments
[cc1516.git]
/
src
/
lex.dcl
diff --git
a/src/lex.dcl
b/src/lex.dcl
index
0b064b4
..
a713e5d
100644
(file)
--- a/
src/lex.dcl
+++ b/
src/lex.dcl
@@
-2,7
+2,7
@@
definition module lex
from Data.Either import :: Either
from Data.Either import :: Either
-:: Token :== (Int, TokenValue)
+:: Token :== (Int,
Int,
TokenValue)
:: TokenValue
//Value tokens
= IdentToken [Char] // Identifier
:: TokenValue
//Value tokens
= IdentToken [Char] // Identifier
@@
-55,6
+55,4
@@
from Data.Either import :: Either
:: LexerOutput :== Either String [Token]
:: LexerOutput :== Either String [Token]
-(===) :: TokenValue Token -> Bool
-
lexer :: [Char] -> LexerOutput
lexer :: [Char] -> LexerOutput