mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
In shell "p" command, only try languages that have a parser.
This commit is contained in:
@@ -530,7 +530,7 @@ allCommands cod pgf = Map.fromList [
|
|||||||
where
|
where
|
||||||
enc = encodeUnicode cod
|
enc = encodeUnicode cod
|
||||||
lin opts t = unlines [linearize pgf lang t | lang <- optLangs opts]
|
lin opts t = unlines [linearize pgf lang t | lang <- optLangs opts]
|
||||||
par opts s = concat [parse pgf lang (optCat opts) s | lang <- optLangs opts]
|
par opts s = concat [parse pgf lang (optCat opts) s | lang <- optLangs opts, canParse pgf lang]
|
||||||
|
|
||||||
void = ([],[])
|
void = ([],[])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user