aboutsummaryrefslogtreecommitdiff
path: root/frontend/scanner.icl
diff options
context:
space:
mode:
authoralimarin2002-03-25 15:04:33 +0000
committeralimarin2002-03-25 15:04:33 +0000
commit5ed289050bba7924972700181478cb22e9d69c70 (patch)
tree43d0c8ebe33e14ad0d4f637ddae3de94acd7bf07 /frontend/scanner.icl
parentfix version number (diff)
new implementation of generics
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1062 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'frontend/scanner.icl')
-rw-r--r--frontend/scanner.icl2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/scanner.icl b/frontend/scanner.icl
index d266b21..bdd168e 100644
--- a/frontend/scanner.icl
+++ b/frontend/scanner.icl
@@ -193,6 +193,7 @@ ScanOptionNoNewOffsideForSeqLetBit:==4;
| ErrorToken String // an error has occured
| GenericToken // generic
+ | DeriveToken // derive
| GenericOpenToken // {|
| GenericCloseToken // |}
@@ -813,6 +814,7 @@ CheckEveryContext s input
"class" -> (ClassToken , input)
"instance" -> (InstanceToken , input)
"generic" -> (GenericToken , input)
+ "derive" -> (DeriveToken , input)
"otherwise" -> (OtherwiseToken , input)
"!" -> (ExclamationToken , input)
"*/" -> (ErrorToken "Unexpected end of comment, */", input)