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
EBNF
NUMBER
: [0-9]+ ('.' [0-9]+)?
;