12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

¢Grammar RulesThis syntax summary defines how all the built-in keywords, operators and commandsof <strong>spec</strong> can be combined. These grammar rules are similar to those given in standardC-language manuals. Operators are listed in order of precedence, with thehighest precedence operators listed first.The following terms are used in the grammar rules:lvalue -“Left value”, something on the left side of an equals sign.binop ¢¡¤£¦¥¨§©§¥¨§ -Aasgnop -Anassignment operator (=, +=, etc.).assoc-array -Anassociative (original-style) array.assoc-elem-list - A space- orcomma-separated list of associative array elements.identifier -Avariable.identifier-list - A space-orcomma-separated list of identifiers.pattern - An alphanumeric string possibly containing themetacharacters ? or * .pattern-list-opt -Anoptional space-separated list of patterns.expression-list -Acomma-separated list of expressions.expr-opt -Anoptional expression.[ ; ] - Asemicolon or a newline. (A semicolon after a statementis optional if the statement is followed by a newline.)Note, that in the following list, the entryexpression in assoc-arrayis included in the rules of what constitutes an expression. This is a <strong>spec</strong>ial expressionthat evaluates to nonzero (or true) ifassoc-array[expr] is an existing element ofthe array,and zero (or false)otherwise. For atwo-dimensional associative array,expr 1in assoc-array[expr 2]is nonzero if assoc-array[expr 2][expr 1] is an element of the array.64 REFERENCE MANUAL INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!