mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-18 17:29:32 -06:00
small things
This commit is contained in:
@@ -128,7 +128,12 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of
|
||||
ASTrm _ -> s2t a
|
||||
_ -> a
|
||||
case a' of
|
||||
ATrms (trm:_) -> do
|
||||
ATrms (trm:_) -> case tree2exp trm of
|
||||
G.EInt _ -> do
|
||||
putStrLn "Warning: Number argument deprecated, use gr -number=n instead"
|
||||
ts <- randomTreesIO opts gro (optIntOrN opts flagNumber 1)
|
||||
returnArg (ATrms ts) sa
|
||||
_ -> do
|
||||
g <- newStdGen
|
||||
case (goFirstMeta (tree2loc trm) >>= refineRandom g 41 cgr) of
|
||||
Ok trm' -> returnArg (ATrms [loc2tree trm']) sa
|
||||
|
||||
Reference in New Issue
Block a user