forked from GitHub/gf-core
*** empty log message ***
This commit is contained in:
8
grammars/testConversions/MicroAbs.gf
Normal file
8
grammars/testConversions/MicroAbs.gf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
abstract MicroAbs = {
|
||||||
|
|
||||||
|
cat S;
|
||||||
|
|
||||||
|
fun vars : S;
|
||||||
|
|
||||||
|
}
|
||||||
10
grammars/testConversions/MicroCnc.gf
Normal file
10
grammars/testConversions/MicroCnc.gf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
concrete MicroCnc of MicroAbs = {
|
||||||
|
|
||||||
|
lincat S = {a : {s1:Str ; s2:Str}};
|
||||||
|
|
||||||
|
lin vars = {a = variants { {s1="a" ; s2=variants{"b";"c"}} ; {s1="d";s2="e"} }};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -169,6 +169,7 @@ customGrammarPrinter =
|
|||||||
-- grammar conversions, (peb)
|
-- grammar conversions, (peb)
|
||||||
,(strCI "gfc_show", show . grammar2canon . stateGrammarST)
|
,(strCI "gfc_show", show . grammar2canon . stateGrammarST)
|
||||||
,(strCI "gfc_raw", prRaw . stateGrammarST)
|
,(strCI "gfc_raw", prRaw . stateGrammarST)
|
||||||
|
,(strCI "tnf", prCanon . convertCanonToTNF . stateGrammarST)
|
||||||
,(strCI "mcfg", prMCFG . convertCanonToMCFG . stateGrammarST)
|
,(strCI "mcfg", prMCFG . convertCanonToMCFG . stateGrammarST)
|
||||||
,(strCI "mcfg_cf", prCF . convertCanonToCF . stateGrammarST)
|
,(strCI "mcfg_cf", prCF . convertCanonToCF . stateGrammarST)
|
||||||
,(strCI "mcfg_canon", prCanon . convertCanonToMCFG . stateGrammarST)
|
,(strCI "mcfg_canon", prCanon . convertCanonToMCFG . stateGrammarST)
|
||||||
|
|||||||
Reference in New Issue
Block a user