forked from GitHub/gf-core
Replace Category with Type in the PGF API. Added readLanguage and showLanguage.
This commit is contained in:
@@ -26,7 +26,7 @@ pgf2js pgf =
|
||||
n = prCId $ absname pgf
|
||||
as = abstract pgf
|
||||
cs = Map.assocs (concretes pgf)
|
||||
start = M.lookStartCat pgf
|
||||
start = prCId $ M.lookStartCat pgf
|
||||
grammar = new "GFGrammar" [js_abstract, js_concrete]
|
||||
js_abstract = abstract2js start as
|
||||
js_concrete = JS.EObj $ map (concrete2js start n) cs
|
||||
|
||||
Reference in New Issue
Block a user