Previous Up Next
6.5 Constants

constant ::= integer-literal
  | float-literal
  | char-literal
  | string-literal
  | constr
  | `tag-name

The syntactic class of constants comprises literals from the four base types (integers, floating-point numbers, characters, character strings), and constant constructors from both normal and polymorphic variants.


Previous Up Next