Replace Category with Type in the PGF API. Added readLanguage and showLanguage.
This commit is contained in:
1 parent
3d92897a94
commit
a26290659d
8 files changed
+28
-21
No files matched your search
@@ -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