Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - 日本語

Change language to:
English - Français - Português

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

Scilab help >> Strings > tree2code

tree2code

Scilab関数のアスキー定義を生成する

呼び出し手順

txt=tree2code(tree,prettyprint)

パラメータ

tree

マクロツリー (macr2treeの出力)

prettyprint

オプションの論理値

%T

生成されるコードはインデント,整形されます

%F

生成されるコードは整形されません (デフォルト)

txt

文字列の列ベクトルで, Scilab命令を指定するテキスト

説明

読み込まれたScilab関数 "ツリー" (macr2treeの出力)を指定することで, tree2code によりコードを再生することができます.

Examples

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

参照

作者

  • V.C.
<< tokens Strings Sound file handling >>

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:57 CEST 2011