Man Scilab

tree2code
Scilab Function

tree2code - generates ascii definition of a Scilab function

Calling Sequence

txt=tree2code(tree,prettyprint)

Parameters

Description

Given a loaded Scilab function "tree" (returned by macr2tree), tree2code allows to re-generate the code. Note that as comments are not retained in loaded functions the comments cannot be regenerated.

Examples


tree=macr2tree(help);
txt=tree2code(tree,%T);
write(%io(2),txt,'(a)')
 
  

See Also

macr2tree ,  

Authors

V.C.

Back