CoCoA:Grammar/Command

From ApCoCoAWiki
Revision as of 15:39, 23 June 2007 by Fran (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Command

Syntax

COMMAND ::= HELP_QUERY newline
   | COMMENT
   | PACKAGE_DECL
   | FUNCTION_DECL
   | STATEMENT;

Commands can be divided in three main groups:

  • Interactive commands (such as ?)
  • Package and Function declarations (Package and Define)
  • Statements (assignment, If, For, etc.)

Static

See specific definition

Run-time

See specific definition