1
0
forked from GitHub/gf-core

refactor the compilation of CFG and EBNF grammars. Now they are parsed by using GF.Grammar.Parser just like the ordinary GF grammars. Furthermore now GF.Speech.CFG is moved to GF.Grammar.CFG. The new module is used by both the speech conversion utils and by the compiler for CFG grammars. The parser for CFG now consumes a lot less memory and can be used with grammars with more than 4 000 000 productions.

This commit is contained in:
kr.angelov
2014-03-21 21:25:05 +00:00
parent d816c34986
commit 51a9ef72c7
19 changed files with 236 additions and 413 deletions

View File

@@ -10,7 +10,7 @@ import PGF(showCId)
import PGF.Data as PGF
import PGF.Macros
--import GF.Infra.Ident
import GF.Speech.CFG hiding (Symbol)
import GF.Grammar.CFG hiding (Symbol)
import Data.Array.IArray as Array
--import Data.List