aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/ast
Commit message (Collapse)AuthorAgeFilesLines
* Implement fmt::Display for ErrorTolmachev Igor2026-05-093-26/+31
| | | | | Replaces the todo!() stub. InvalidFloatLiteral and InvalidIntegerLiteral now also take the original string.
* Add parser testsTolmachev Igor2026-05-094-6/+766
|
* Add RecursionLimit parser errorTolmachev Igor2026-05-092-0/+12
| | | | | Returns error after 256 levels of nesting to avoid stack overflow. The limit is hardcoded now, but will become a compiler flag later.
* Reserve inf, +inf, -inf, nan as keywordsTolmachev Igor2026-05-091-1/+5
| | | | Needed to represent literals as f64::INFINITY, f64::NEG_INFINITY and f64::NAN.
* Replace todo!() in parser with errorsTolmachev Igor2026-05-092-53/+67
|
* Rename Parser.cursor to Parser.last_token_endTolmachev Igor2026-05-091-9/+11
| | | | `cursor` sounds like the current position, but the field stores the end of the last consumed token.
* Add AST parser skeletonTolmachev Igor2026-05-093-0/+221