the user can now upload their own grammars in the editor

This commit is contained in:
krasimir
2011-03-07 21:05:29 +00:00
parent 62c85f1bb6
commit 42ad2d5e95
13 changed files with 251 additions and 141 deletions

View File

@@ -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