Use grammar name as gsl category name prefix. Put some grammar info in GSL comments.

This commit is contained in:
bringert
2004-09-14 15:45:17 +00:00
parent 79f1afe65b
commit 25f95fcfc3
2 changed files with 31 additions and 17 deletions

View File

@@ -191,7 +191,9 @@ customGrammarPrinter =
,(strCI "cf", prCF . stateCF)
,(strCI "old", printGrammarOld . stateGrammarST)
,(strCI "srg", prSRG . stateCF)
,(strCI "gsl", \s -> gslPrinter (stateOptions s) $ Cnv.cfg $ statePInfo s)
,(strCI "gsl", \s -> let opts = stateOptions s
name = cncId s
in gslPrinter name opts $ Cnv.cfg $ statePInfo s)
,(strCI "lbnf", prLBNF . stateCF)
,(strCI "haskell", grammar2haskell . stateGrammarST)
,(strCI "morpho", prMorpho . stateMorpho)