Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes towards a language server friendly compiler #673

Merged
merged 27 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e55dbbf
Experiment with ranged diagnostics
edusporto Aug 1, 2024
8426a3c
Change `Parser` to error with span information
edusporto Aug 6, 2024
7cd4ddf
Add file and span information to parsing error diagnostics
edusporto Aug 6, 2024
8ba7f95
Change `range` to `span`
edusporto Aug 6, 2024
cf376af
Fix tests
edusporto Aug 6, 2024
46b24fc
Fix byte span to line position translation
edusporto Aug 7, 2024
9c3eb35
Report range on unused definition warning
edusporto Aug 7, 2024
811e511
Optional origin in file span
edusporto Aug 7, 2024
f9198f4
Add function to display single diagnostic with its origin
edusporto Aug 7, 2024
1fe3dd1
Bump HVM version to 2.0.22
edusporto Aug 9, 2024
f1d419d
Remove unused diagnostics code
edusporto Aug 13, 2024
4e155cc
Implement function diagnostic origin
edusporto Aug 14, 2024
c9c7219
Add word to cspell
edusporto Aug 14, 2024
ca4da8f
Remove `Rule` diagnostic origin in favor of `Function`
edusporto Aug 14, 2024
e42add1
Update Cargo.toml to avoid semantic versioning for HVM
edusporto Aug 14, 2024
c86daac
Change "repeated field" message to avoid printing expected term
edusporto Aug 14, 2024
66ac5dc
Change `Stmt::into_fun` back into returning strings as errors
edusporto Aug 14, 2024
e263c98
Merge branch 'main' into lsp-experiments
edusporto Aug 14, 2024
d67080b
Refactor range reporting system to be a simple `Source`
edusporto Aug 15, 2024
2208ca9
Merge branch 'main' into lsp-experiments
edusporto Aug 16, 2024
6365c0c
Fix conflict between error expecting `String` getting `Diagnostics`
edusporto Aug 16, 2024
9b20e51
Keep original source in generated definitions
edusporto Aug 16, 2024
bde36fc
Improve `definition_merge` comments
edusporto Aug 16, 2024
8e20371
Change diagnostics printing so it doesn't include "During execution:"
edusporto Aug 16, 2024
9862533
Fix clippy warning
edusporto Aug 16, 2024
e1ba43d
Add changelog
edusporto Aug 19, 2024
cd268fa
Merge branch 'main' into lsp-experiments
edusporto Aug 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ and this project does not currently adhere to a particular versioning scheme.
- Change branches to support ending with ask statements. ([#629][gh-629])
- Improve hexadecimal and binary floating numbers. ([#648][gh-648])
- Change IO functions to return Result. ([#657][gh-657])
- Revamp the diagnostics system and parser to show more error and warning messages ([#673][gh-673])

## [0.2.36] - 2024-07-04

Expand Down Expand Up @@ -422,6 +423,7 @@ and this project does not currently adhere to a particular versioning scheme.
[gh-648]: https://github.com/HigherOrderCO/Bend/issues/648
[gh-657]: https://github.com/HigherOrderCO/Bend/issues/657
[gh-659]: https://github.com/HigherOrderCO/Bend/pull/659
[gh-673]: https://github.com/HigherOrderCO/Bend/pull/673
[gh-674]: https://github.com/HigherOrderCO/Bend/issues/674
[gh-675]: https://github.com/HigherOrderCO/Bend/issues/675
[Unreleased]: https://github.com/HigherOrderCO/Bend/compare/0.2.36...HEAD
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ default = ["cli"]
cli = ["dep:clap"]

[dependencies]
TSPL = "0.0.12"
TSPL = "0.0.13"
clap = { version = "4.4.1", features = ["derive"], optional = true }
highlight_error = "0.1.1"
hvm = "=2.0.19"
hvm = "=2.0.22"
indexmap = "2.2.3"
interner = "0.2.1"
itertools = "0.11.0"
Expand Down
Loading
Loading