mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
pgf service: include the start category in grammar info
This commit is contained in:
@@ -297,6 +297,7 @@ doGrammar :: PGF -> Maybe (Accept Language) -> JSValue
|
|||||||
doGrammar pgf macc = showJSON $ toJSObject
|
doGrammar pgf macc = showJSON $ toJSObject
|
||||||
[("name", showJSON (PGF.abstractName pgf)),
|
[("name", showJSON (PGF.abstractName pgf)),
|
||||||
("userLanguage", showJSON (selectLanguage pgf macc)),
|
("userLanguage", showJSON (selectLanguage pgf macc)),
|
||||||
|
("startcat",showJSON (PGF.showType [] (PGF.startCat pgf))),
|
||||||
("categories", showJSON categories),
|
("categories", showJSON categories),
|
||||||
("functions", showJSON functions),
|
("functions", showJSON functions),
|
||||||
("languages", showJSON languages)]
|
("languages", showJSON languages)]
|
||||||
|
|||||||
Reference in New Issue
Block a user