From 694f6eb984c8f22fe042e210b0671062accba8c7 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Thu, 8 Jun 2006 21:23:29 +0000 Subject: code polishing for the literal category support --- src/GF/Formalism/CFG.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GF/Formalism/CFG.hs') diff --git a/src/GF/Formalism/CFG.hs b/src/GF/Formalism/CFG.hs index 2eb090131..c38adb4e2 100644 --- a/src/GF/Formalism/CFG.hs +++ b/src/GF/Formalism/CFG.hs @@ -33,8 +33,8 @@ type CFChart c n t = CFGrammar (Edge c) n t -- building syntax charts from grammars grammar2chart :: (Ord n, Ord e) => CFGrammar e n t -> SyntaxChart n e -grammar2chart cfchart = accumAssoc groupPairs $ - [ (lhs, (name, filterCats rhs)) | +grammar2chart cfchart = accumAssoc groupSyntaxNodes $ + [ (lhs, SNode name (filterCats rhs)) | CFRule lhs rhs name <- cfchart ] -- cgit v1.2.3