mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
function doListGrammars in PGFService is obsolete
This commit is contained in:
@@ -92,13 +92,6 @@ pgfMain pgf command =
|
||||
Just lang | lang `elem` PGF.languages pgf -> return $ Just lang
|
||||
| otherwise -> throwCGIError 400 "Unknown language" ["Unknown language: " ++ l]
|
||||
|
||||
doListGrammars :: IO JSValue
|
||||
doListGrammars =
|
||||
do cwd <- getCurrentDirectory
|
||||
ps <- getDirectoryContents cwd
|
||||
let fs = filter ((== ".pgf") . map toLower . takeExtension) $ map takeFileName ps
|
||||
return $ showJSON $ map toJSObject [[("name", f)] | f <- fs]
|
||||
|
||||
doTranslate :: PGF -> String -> Maybe PGF.Type -> Maybe PGF.Language -> Maybe PGF.Language -> JSValue
|
||||
doTranslate pgf input mcat mfrom mto =
|
||||
showJSON
|
||||
|
||||
Reference in New Issue
Block a user