mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 08:12:51 -06:00
Change input to the different SRG printers to be StateGrammar instead of CGrammar. This to allow looking at the types in SISR, and to reduce the number of argument passed from Custom.
This commit is contained in:
@@ -14,8 +14,9 @@ import GF.Conversion.Types
|
||||
import GF.Infra.Ident
|
||||
import GF.Speech.CFGToFiniteState
|
||||
import GF.Speech.RegExp
|
||||
import GF.Compile.ShellState (StateGrammar)
|
||||
|
||||
|
||||
regexpPrinter :: Ident -- ^ Grammar name
|
||||
-> String -> CGrammar -> String
|
||||
regexpPrinter name start cfg = prRE $ dfa2re $ cfgToFA start cfg
|
||||
-> String -> StateGrammar -> String
|
||||
regexpPrinter name start = prRE . dfa2re . cfgToFA start
|
||||
|
||||
Reference in New Issue
Block a user