List of special symbols in Modula-2 and where they are used

[back to rule list]
0 -> octaldigit
1 -> octaldigit
2 -> octaldigit
3 -> octaldigit
4 -> octaldigit
5 -> octaldigit
6 -> octaldigit
7 -> octaldigit
8 -> digit
9 -> digit

A -> hexdigit
  -> upper_case_letter
  -> lower_case_letter
B -> hexdigit
  -> integer
  -> upper_case_letter
  -> lower_case_letter
C -> hexdigit
  -> integer
  -> upper_case_letter
  -> lower_case_letter
D -> hexdigit
E -> hexdigit
  -> scale_factor
F -> hexdigit
H -> integer
Z -> upper_case_letter
  -> lower_case_letter

# -> const_expression
  -> expression
& -> const_term
  -> term
' -> string
(* -> comment
( -> const_factor
  -> enumeration
  -> factor
  -> formal_parameters
  -> procedure_call
  -> procedure_type
) -> const_factor
  -> enumeration
  -> factor
  -> formal_parameters
  -> procedure_call
  -> procedure_type
*) -> comment
* -> const_term
  -> term
+ -> scale_factor
  -> simple_const_expr
  -> simple_expression
- -> scale_factor
  -> simple_const_expr
  -> simple_expression
< -> const_expression
  -> expression
<= -> const_expression
   -> expression
<> -> const_expression
   -> expression
= -> const_expression
  -> constant_declaration
  -> definition
  -> expression
  -> type_declaration
> -> const_expression
  -> expression
>= -> const_expression
   -> expression
.. -> case_labels
   -> element
   -> subrange_type
. -> definition_module
  -> designator
  -> program_module
  -> qualident
  -> real
/ -> const_term
  -> term
: -> case
  -> field_list
  -> formal_parameters
  -> fp_section
  -> procedure_type
  -> variable_declaration
  -> variant
:= -> assignment
   -> for_statement
[ -> designator
  -> module_declaration
  -> program_module
  -> subrange_type
] -> designator
  -> module_declaration
  -> program_module
  -> subrange_type
^ -> designator
{ -> set
| -> case_statement
  -> field_list
} -> set
, -> array_type
  -> case
  -> designator
  -> enumeration
  -> export
  -> factor
  -> field_list
  -> fp_section
  -> import
  -> procedure_call
  -> procedure_type
  -> set
  -> variable_declaration
  -> variant
; -> block
  -> case
  -> case_statement
  -> declaration
  -> definition
  -> definition_module
  -> export
  -> field_list
  -> for_statement
  -> formal_parameters
  -> if_statement
  -> import
  -> loop_statement
  -> module_declaration
  -> procedure_declaration
  -> program_module
  -> record_type
  -> repeat_statement
  -> statement_sequence
  -> variant
  -> while_statement
  -> with_statement

any_character -> comment
double_quote -> string
one_character -> string


[back to rule list]

© 1994-1995 Th. Estier Geneva / estier@cui.unige.ch