aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/ast/parser.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove Quote from parserTolmachev Igor2026-05-101-9/+0
| | | | Dropped to make the language simpler.
* Make project structure more consistentdevTolmachev Igor2026-05-091-6/+6
|
* Implement fmt::Display for ErrorTolmachev Igor2026-05-091-6/+10
| | | | | Replaces the todo!() stub. InvalidFloatLiteral and InvalidIntegerLiteral now also take the original string.
* Add parser testsTolmachev Igor2026-05-091-1/+1
|
* Add RecursionLimit parser errorTolmachev Igor2026-05-091-0/+10
| | | | | 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-091-51/+35
|
* 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-091-0/+182