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:
aarne
2011-03-12 10:20:54 +00:00
parent 9fdcc97716
commit d782be6440
4 changed files with 27 additions and 5 deletions

View File

@@ -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,