mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
recognize digits in synopsis examples
This commit is contained in:
@@ -48,7 +48,7 @@ getApiExxTrees = M.fromList . pairs . map cleanUp
|
|||||||
_ -> []
|
_ -> []
|
||||||
|
|
||||||
-- remove leading prompts and spaces
|
-- remove leading prompts and spaces
|
||||||
cleanUp = dropWhile (\c -> not (isAlpha c || elem c "*'"))
|
cleanUp = dropWhile (flip elem " >")
|
||||||
|
|
||||||
-- only accept lines starting with prompts (to eliminate multi-line gf uncomputed output)
|
-- only accept lines starting with prompts (to eliminate multi-line gf uncomputed output)
|
||||||
validOutput = (==">") . take 1
|
validOutput = (==">") . take 1
|
||||||
|
|||||||
Reference in New Issue
Block a user