next up previous
Next: Dangling else Up: Phrase structure Previous: Statement labeling


Precedence and association

Precedence and association[19]:
expression: simple_expression [ relational_operator simple_expression ] .

simple_expression: [sign] term / simple_expression adding_operator term .

sign: '+' / '-' .
csign: '+' / '-' .

term: factor / term multiplying_operator factor .

factor:
  '(' expression ')' /
  'not' factor /
  FncIdUse FncArgs /
  '[' Members ']' /
  '['         ']' /
  variable /
  integer_constant /
  real_constant /
  Literal /
  'nil' .

multiplying_operator: '*' / '/' / 'div' / 'mod' / 'and' .

adding_operator: '+' / '-' / 'or' .

relational_operator: '=' / '<>' / '<' / '>' / '<=' / '>=' / 'in' .

variable: ExpIdUse .
This macro is defined in definitions 19.
This macro is invoked in definition 12.



2008-08-29