1
0
forked from GitHub/gf-core

code polishing for the literal category support

This commit is contained in:
kr.angelov
2006-06-08 21:23:29 +00:00
parent 475a56c64f
commit 5999274d1e
12 changed files with 120 additions and 130 deletions

View File

@@ -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 ]