Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - Português

Change language to:
English - Français - 日本語 -

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda Scilab >> Cadeias de Caracteres (Strings) > tree2code

tree2code

gera a definição ASCII de uma função Scilab

Seqüência de Chamamento

txt=tree2code(tree,prettyprint)

Parâmetros

tree

uma árvore macro (vinda de macr2tree)

prettyprint

valor opcional booleano

%T

o código gerado é identado e embelezado

%F

o código gerado não é embelezado (padrão)

txt

um vetor coluna de strings, o texto fornecendo as instruções Scilab

Descrição

Dada uma função Scilab carregada "tree" (retornada por macr2tree), tree2code permite gerar novamente o código.

Exemplos

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

Ver Também

  • macr2tree — conversão de função para árvore

Autor

  • V.C.
<< tokens Cadeias de Caracteres (Strings) Manipulação de Arquivos de Som >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu May 12 11:45:27 CEST 2011