From 70c9f7b365b07044c07837a04223a11dfa3b7140 Mon Sep 17 00:00:00 2001 From: aarne Date: Mon, 17 Nov 2003 15:17:53 +0000 Subject: Lexer by need. --- src/GF/CF/CF.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/GF/CF/CF.hs') diff --git a/src/GF/CF/CF.hs b/src/GF/CF/CF.hs index 0cff68b97..7c0013548 100644 --- a/src/GF/CF/CF.hs +++ b/src/GF/CF/CF.hs @@ -15,8 +15,9 @@ import Char (isUpper, isLower, toUpper, toLower) -- abstract type CF. -- Invariant: each category has all its rules grouped with it -- also: the list is never empty (the category is just missing then) -newtype CF = CF ([(CFCat,[CFRule])], CFPredef) +newtype CF = CF ([CFRuleGroup], CFPredef) type CFRule = (CFFun, (CFCat, [CFItem])) +type CFRuleGroup = (CFCat,[CFRule]) -- CFPredef is a hack for variable symbols and literals; normally = const [] data CFItem = CFTerm RegExp | CFNonterm CFCat deriving (Eq, Ord,Show) -- cgit v1.2.3