Matrix Elements VB-800 Manual de usuario Pagina 136

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 172
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 135
Appendix A6
OxGauss Language Reference
A6.1 Lexical conventions
A6.1.1 Tokens
The first action of a compiler is to divide the source code into units it can understand,
so-called tokens. There are four kinds of tokens: identifiers, keywords, constants (also
called literals) and operators. White space (newlines, formfeeds, tabs, comments) is
ignored except when indexing or in the print statement.
A6.1.2 Comment
Anything between /* and */ is considered comment; this comment can be nested (un-
like C and C
++
). Anything between @ and @ is also comment; this cannot be nested.
Everything following // up to the end of the line is comment, but is ignored inside
other comment types.
1
Note that code can also be removed using preprocessor statements, see §A6.9.2.
A6.1.3 Space
A space (including newline, formfeed, tab, and comments) is used to separate items
when indexing a matrix, or in the print statement.
A6.2 Identifiers
Identifiers are made up of letters and digits. The first character must be a letter. Under-
scores (
) count as a letter. Valid names are CONS, cons, cons 1, a 1 b, etc. Invalid
are #CONS, 1
CONS, log(X), etc. OxGauss is not case sensitive, so CONS and cons
are the same identifiers. It is better not to use identifiers with a leading underscore, as
several compilers use these for internal names. The maximum length of an identifier is
60 characters
2
; additional characters are ignored.
1
Extensions are marked with a *.
2
Up to 32 characters in GAUSS
128
Vista de pagina 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 171 172

Comentarios a estos manuales

Sin comentarios