NUMBER

A numeric literal token representing an integer or decimal number. One or more digits, optionally followed by a decimal point and more digits. Used for integer and decimal quantity values.

Examples

Integer literal

42

Decimal literal

3.14

Used in a quantity

5 'mg'

Used in arithmetic

AgeInYears() >= 18
Railroad Diagram
100%
0–9 . 0–9

scroll to zoom · drag to pan · click green rules or blue tokens to navigate

EBNF

NUMBER
  : [0-9]+ ('.' [0-9]+)?
  ;

Used In