Next: All Purpose General Subroutines
Up: SIC Callable Routines
Previous: SIC Arguments Retrieving Routines
Command Line Interpretor Subroutines
SUBROUTINE SIC_ANALYSE (COMMAND,LINE,NLINE,ERROR)
This subroutine analyses the command line LINE, set up all the internal
pointers for argument retrieval, and returns the name of the command
found. The line must have been formatted by SIC_FORMAT before being
analysed. All active languages are considered, even the ``Library Only''
languages
- COMMAND Character*12, Command name (returned)
- LINE Character*(*), Line to be analysed. It is modified by
SIC_ANALYSE
- NLINE Integer. Current length of LINE, modified on return.
- ERROR Logical. Return error code
SUBROUTINE SIC_FORMAT(LINE,NLINE)
This subroutine does an adequate formatting of any line for later
processing by the SIC interpretor. It does not use any internal common of
SIC and thus may be accessed independently and considered as a more
general routine.
- LINE Character*(*), Line to be formatted.
- NLINE Integer, Current length of LINE. It is modified
by SIC_FORMAT and must be initialized so that only trailing spaces
appear in LINE after NLINE. A good policy is to initialize
NLINE to LENC(LINE).
Next: All Purpose General Subroutines
Up: SIC Callable Routines
Previous: SIC Arguments Retrieving Routines
Gildas manager
2002-06-07