summaryrefslogtreecommitdiff
path: root/src/GF/Formalism/CFG.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GF/Formalism/CFG.hs')
-rw-r--r--src/GF/Formalism/CFG.hs4
1 files changed, 2 insertions, 2 deletions
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 ]