aalhour / aalhour/PyCOOLC

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

Đang mở
#17 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
41
Fork
10
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.