Hi Thomas..
long time i was trying to use seed7 but i decide to do it now ..
i read doc and forund this :
How can I use the Seed7 interpreter?
The s7 interpreter is called with the command
s7 [options] sourcefile [parameters]
Note that the 'options' must be written before the 'sourcefile'.
If the 'sourcefile' is not found .sd7 is appended to the 'sourcefile'
and searched for that file.
The following options are recognized by s7:
-? Write Seed7 interpreter usage.
-a Analyze only and suppress the execution phase.
-dx Set compile time trace level to x. Where x is a string consisting
of the following characters:
a Trace primitive actions
c Do action check
d Trace dynamic calls
e Trace exceptions and handlers
h Trace heap size (in combination with 'a')
s Trace signals
-d Equivalent to -da
-i Show the identifier table after the analyzing phase.
-l Add a directory to the include library search path (e.g.: -l ../lib).
-p Specify a protocol file, for trace output (e.g.: -p prot.txt).
-q Compile quiet. Line and file information and compilation
statistics are suppressed.
-s Deactivate signal handlers.
-tx Set runtime trace level to x. Where x is a string consisting
of the following characters:
a Trace primitive actions
c Do action check
d Trace dynamic calls
e Trace exceptions and handlers
h Trace heap size (in combination with 'a')
s Trace signals
-t Equivalent to -ta
-vn Set verbosity level of analyse phase to n. Where n is one
of the following characters:
0 Compile quiet (equivalent to -q)
1 Write just the header with version information (default)
2 Write a list of include libraries
3 Write line numbers, while analyzing
-v Equivalent to -v2
-x Execute even if the program contains errors.
In the program the 'parameters' can be accessed via 'argv(PROGRAM)'.
The function 'argv(PROGRAM)' delivers an array of strings. The number
of parameters is 'length(argv(PROGRAM))' and 'argv(PROGRAM)[1]'
returns the first parameter.
So Thomas i tried this from my editor : i use win7_32bit
with any of this command line switches i cannot run seed7 program ..or i am missing something adter reading all that stuff??
Hi Thomas..
long time i was trying to use seed7 but i decide to do it now ..
i read doc and forund this :
How can I use the Seed7 interpreter?
The s7 interpreter is called with the command
s7 [options] sourcefile [parameters]
Note that the 'options' must be written before the 'sourcefile'.
If the 'sourcefile' is not found .sd7 is appended to the 'sourcefile'
and searched for that file.
The following options are recognized by s7:
-? Write Seed7 interpreter usage.
-a Analyze only and suppress the execution phase.
-dx Set compile time trace level to x. Where x is a string consisting
of the following characters:
a Trace primitive actions
c Do action check
d Trace dynamic calls
e Trace exceptions and handlers
h Trace heap size (in combination with 'a')
s Trace signals
-d Equivalent to -da
-i Show the identifier table after the analyzing phase.
-l Add a directory to the include library search path (e.g.: -l ../lib).
-p Specify a protocol file, for trace output (e.g.: -p prot.txt).
-q Compile quiet. Line and file information and compilation
statistics are suppressed.
-s Deactivate signal handlers.
-tx Set runtime trace level to x. Where x is a string consisting
of the following characters:
a Trace primitive actions
c Do action check
d Trace dynamic calls
e Trace exceptions and handlers
h Trace heap size (in combination with 'a')
s Trace signals
-t Equivalent to -ta
-vn Set verbosity level of analyse phase to n. Where n is one
of the following characters:
0 Compile quiet (equivalent to -q)
1 Write just the header with version information (default)
2 Write a list of include libraries
3 Write line numbers, while analyzing
-v Equivalent to -v2
-x Execute even if the program contains errors.
In the program the 'parameters' can be accessed via 'argv(PROGRAM)'.
The function 'argv(PROGRAM)' delivers an array of strings. The number
of parameters is 'length(argv(PROGRAM))' and 'argv(PROGRAM)[1]'
returns the first parameter.
So Thomas i tried this from my editor : i use win7_32bit
with any of this command line switches i cannot run seed7 program ..or i am missing something adter reading all that stuff??
sRet = ShellExecute(0,"open", cdPath32, "-g" + chr(34)+ fName + chr(34) + "argv(PROGRAM)" ,"" , 5)
So why not work with ShellExecute() win api function ?
thanks.