From 1599ce4ba94b2ed332a10e7e5fbec1db33b5455e Mon Sep 17 00:00:00 2001 From: aarne Date: Sat, 12 Mar 2011 10:20:54 +0000 Subject: 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' --- src/compiler/GF/Command/Commands.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler/GF/Command/Commands.hs') diff --git a/src/compiler/GF/Command/Commands.hs b/src/compiler/GF/Command/Commands.hs index 1e69c1df2..1290666cb 100644 --- a/src/compiler/GF/Command/Commands.hs +++ b/src/compiler/GF/Command/Commands.hs @@ -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, -- cgit v1.2.3