Lexical rules
1.1 Identifiers#
carbon
1 2 3 4 | |
1.2 Literals#
| Literal | Syntax | Examples |
|---|---|---|
| String | "..." |
"hello world" |
| Multi-line string | """...""" |
"""multi\nline""" |
| Integer | -?[0-9]+ |
42, -7, 1_000_000 |
| Float | -?[0-9]+\.[0-9]+ |
3.14, -0.5 |
| Boolean | true | false |
true |
| Null | null |
null |
| Duration | INTEGER UNIT |
30s, 5m, 1h, 7d, 2w |
| Date | YYYY-MM-DD |
2026-01-15 |
| DateTime | ISO 8601 | 2026-01-15T10:30:00Z |
| Money | FLOAT with money type |
1500.00 (type provides currency) |
| Semver | "MAJOR.MINOR.PATCH" |
"1.2.3" |
1.3 Comments#
scaicore
1 2 3 4 | |
1.4 Keywords (Reserved)#
Active in v0.1:
scaicore
1 2 3 4 5 6 7 8 9 10 11 | |
Reserved for future versions:
tsql
1 | |