summaryrefslogtreecommitdiff
path: root/src/Transfer/Syntax/Lex.x
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2005-11-30 20:27:01 +0000
committerbringert <bringert@cs.chalmers.se>2005-11-30 20:27:01 +0000
commit7dfa1842859b408d0eadd4d79a5b1ce0267a13b2 (patch)
tree983536942b3836c01033612fb358a619a3505bf0 /src/Transfer/Syntax/Lex.x
parentd92a26fc9be92fb269888947a8b26aa12883065e (diff)
Added bind operators, do-notation, a cons operator and list sytnax.
Diffstat (limited to 'src/Transfer/Syntax/Lex.x')
-rw-r--r--src/Transfer/Syntax/Lex.x4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Transfer/Syntax/Lex.x b/src/Transfer/Syntax/Lex.x
index 556ecd2b0..faa30740c 100644
--- a/src/Transfer/Syntax/Lex.x
+++ b/src/Transfer/Syntax/Lex.x
@@ -16,7 +16,7 @@ $i = [$l $d _ '] -- identifier character
$u = [\0-\255] -- universal: any character
@rsyms = -- reserved words consisting of special symbols
- \; | \: | \{ | \} | \= | \( | \) | \_ | \- \> | \\ | \| \| | \& \& | \= \= | \/ \= | \< | \< \= | \> | \> \= | \+ | \- | \* | \/ | \% | \. | \?
+ \; | \: | \{ | \} | \= | \( | \) | \_ | \- \> | \< \- | \\ | \> \> \= | \> \> | \| \| | \& \& | \= \= | \/ \= | \< | \< \= | \> | \> \= | \: \: | \+ | \- | \* | \/ | \% | \. | \[ | \] | \? | \,
:-
"--" [.]* ; -- Toss single line comments
@@ -79,7 +79,7 @@ eitherResIdent tv s = treeFind resWords
| s > a = treeFind right
| s == a = t
-resWords = b "in" (b "derive" (b "case" (b "Type" N N) (b "data" N N)) (b "if" (b "else" N N) (b "import" N N))) (b "sig" (b "of" (b "let" N N) (b "rec" N N)) (b "where" (b "then" N N) N))
+resWords = b "import" (b "derive" (b "case" (b "Type" N N) (b "data" N N)) (b "else" (b "do" N N) (b "if" N N))) (b "rec" (b "let" (b "in" N N) (b "of" N N)) (b "then" (b "sig" N N) (b "where" N N)))
where b s = B s (TS s)
unescapeInitTail :: String -> String