mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-12 04:32:50 -06:00
the user can now upload their own grammars in the editor
This commit is contained in:
@@ -46,7 +46,7 @@ cgiMain' cache path =
|
||||
pgfMain pgf command
|
||||
|
||||
pgfMain :: PGF -> String -> CGI CGIResult
|
||||
pgfMain pgf command =
|
||||
pgfMain pgf command = do
|
||||
case command of
|
||||
"parse" -> outputJSONP =<< doParse pgf `fmap` getText `ap` getCat `ap` getFrom
|
||||
"complete" -> outputJSONP =<< doComplete pgf `fmap` getText `ap` getCat `ap` getFrom `ap` getLimit
|
||||
|
||||
Reference in New Issue
Block a user