aalhour / aalhour/PyCOOLC

Epic 1: Diagnostics & UX (front-end polish)

未关闭
#17 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
41
派生
10
PR 合并指标
30 天内没有已合并 PR

描述

## Epic 1: Diagnostics & UX (front-end polish)

### Goal: compiler is pleasant to use, errors are actionable, multiple errors per run.

- [ ] Standardize a diagnostic model: every diagnostic has `(file, line, col, message, severity)`
- [ ] Print source snippet + caret underline (and ideally a range)
- [ ] Ensure *all* errors have column info (not just line)
- [ ] Implement error recovery:
- [ ] Parser sync points (e.g., `;`, `}`, `)` depending on grammar)
- [ ] Continue semantic analysis when safe (collect errors, avoid noisy cascades)
- [ ] Add warnings:
- [ ] unused variables / unused `let` bindings
- [ ] unreachable code after `return`
- [ ] shadowed bindings
- [ ] Add `--warnings-as-errors` and `--no-warn` flags
- [ ] Add `--verbose` flag (show which phase is running, file being processed)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。