File: fun2string.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (33 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.TH fun2string 1 "April 1998" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
fun2string - generates ascii definition of a scilab function
.SH CALLING SEQUENCE
.nf
txt=fun2string(fun,name)
.fi
.SH PARAMETERS
.TP 15
fun
: a function type variable
.TP 
name
: a character string, the generated function name
.TP 
txt
: a column vector of strings, the text giving the scilab instructions
.SH DESCRIPTION
Given a loaded Scilab function pseudo-code fun2string allow to
re-generate the the code. Note that as comments are not retained in
loaded functions the comments cannot be regenerated. The generated
code is indented and beautified.  
.LP
The mechanism is similar, but simpler than the mfile2sci one. It may
be adapted for syntax translations.
.SH EXAMPLE
.nf
txt=fun2string(asinh,'foo');
write(%io(2),txt,'(a)')
.fi
.SH SEE ALSO
getf, edit, macrovar