The set of literals in Dahlia largely overlaps with those in C with some conveniences.
Simple unsigned numbers can be defined using:
- Decimal notation:
10, 20, 0
- Octal notation:
- Hexadecimal notation:
Signed numbers are written with the unary operator
Floating point constants
Floating point numbers are defined using C syntax:
Unlike C, Dahlia treats booleans differently from numbers.
Most C/C++ backends will simply compile these down to