mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
generalized pt -transfer so that it goes into subtrees (naive implementation in TreeOperations; using PGF.Expr.match would be better); example given in 'h pt'
This commit is contained in:
@@ -649,7 +649,8 @@ allCommands env@(pgf, mos) = Map.fromList [
|
||||
"are type checking and semantic computation."
|
||||
],
|
||||
examples = [
|
||||
"pt -compute (plus one two) -- compute value"
|
||||
"pt -compute (plus one two) -- compute value",
|
||||
"p \"4 dogs love 5 cats\" | pt -transfer=digits2numeral | l -- four...five..."
|
||||
],
|
||||
exec = \opts ->
|
||||
returnFromExprs . takeOptNum opts . treeOps opts,
|
||||
|
||||
Reference in New Issue
Block a user