Skip to content

feat: bracket diagnostics and readable parser errors (#30, #38) - #93

Merged
otnc merged 2 commits into
mainfrom
feat/bracket-diagnostics
Oct 16, 2026
Merged

otnc merged 2 commits into
mainfrom
feat/bracket-diagnostics

Conversation

@otnc

@otnc otnc commented Oct 16, 2026

Copy link
Copy Markdown
Member
  • Parser::check_brackets reports line:col: unclosed '[' and line:col: unmatched ']' (unclosed brackets used to compile silently)
  • expected Else_ but found Eof now reads expected 'else' but found Eof (keyword spelling from the source)
  • 3 new tests; moon test --target js 337/337; all 13 examples and all 53 get-started lesson files still pass check with no errors

The language server (#92) already parses these line:col messages. Still open in #30/#38: AST node spans, multiple recoverable errors, error codes, source maps.

@otnc
otnc merged commit c604933 into main Oct 16, 2026
8 checks passed
@otnc
otnc deleted the feat/bracket-diagnostics branch October 16, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant