INCLAN: command: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
(Created page with 'Usage: subroutine ''name'' ''sequence of statements'' end command ''name'' ''sequence of statements'' end command The statements …')
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Usage: subroutine ''name''
== Synopsis ==
        ''sequence of statements''
      end


      command ''name''
'''command''' ''name''
        ''sequence of statements''
:''sequence of statements''
      end
'''end'''


      command
or


The statements "subroutine" and "command" define a new user-defined command
'''command'''
within a macro, i.e. a macro within a macro. User-defined commands defined
 
by a "subroutine" statement are local to the current macro (or macros called
== Description ==
through it), whereas "command" declares a globally visible user-defined
 
command. User-defined commands defined by "subroutine" or "command" state-
Defines a new globally visible user-defined command within a macro, i.e. a macro within a macro. User-defined commands defined by '''command''' statements are called by their ''name'', possibly followed by parameters, in exactly the same way as macros. Within a macro, a user-defined command can only be called after it was defined. The statement '''command''' without parameters gives a list of all user-defined commands, and indicates where they are defined.
ments are called by their name, possibly followed by parameters, in exactly
the same way as macros. Within a macro, a user-defined command can only be
called after it was defined.
The statement "command" without parameters gives a list of all user-defined
commands, and indicates where they are defined.

Latest revision as of 10:46, 17 August 2009

Synopsis

command name

sequence of statements

end

or

command

Description

Defines a new globally visible user-defined command within a macro, i.e. a macro within a macro. User-defined commands defined by command statements are called by their name, possibly followed by parameters, in exactly the same way as macros. Within a macro, a user-defined command can only be called after it was defined. The statement command without parameters gives a list of all user-defined commands, and indicates where they are defined.