docs(essence-parser/lsp): adding documentation for error detection and lsp#1832
docs(essence-parser/lsp): adding documentation for error detection and lsp#1832Soph1514 wants to merge 35 commits into
Conversation
|
Automatically assigned this pull request to @Soph1514. If it makes more sense for someone else to own it, feel free to reassign it. |
Book PreviewPreview: https://conjure-cp.github.io/conjure-oxide-reports/pr/1832/book/ |
…ection' into docs/error-detection
|
@Soph1514 why is that one check failing? do you know what it is? |
|
I rerun the test, it is fine now. Not sure what it was |
1ad5469 to
13a5d6b
Compare
…conjure-oxide into docs/error-detection
…t in error-detection.md
EEJDempster
left a comment
There was a problem hiding this comment.
looks good to me! thanks for updating the server docs :) lgtm
|
|
||
| These are detected during parser traversal/conversion while building model structures. | ||
|
|
||
| # Detection Flow (parse_model.rs) |
There was a problem hiding this comment.
It would be nice if this was a link to parse_model.rs
| The [roundtrip/invalid/semantic test directory](https://github.com/conjure-cp/conjure-oxide/tree/main/tests-integration/tests/roundtrip/invalid/semantic) contains various semantic error cases and their expected outputs. | ||
|
|
||
| ## Note: Keywords as Identifiers | ||
| The parser's reserved/keyword list is maintained in `crates/conjure-cp-essence-parser/src/parser/keyword_checks.rs`. When new language keywords are added, update that file so the parser and documentation remain consistent. |
There was a problem hiding this comment.
Would be nice if this was a link too
| @@ -1,12 +1,140 @@ | |||
| [//]: # (Author: Anastasia Martinson) | |||
| [//]: # (Last Updated: 18/12/2025) | |||
| [//]: # (Author: Liz Dempster, Anastasia Martinson) | |||
There was a problem hiding this comment.
This file is a great overview that should be the first one that is seen. I suggest changing its position to the top of its section
Description
This PR adds documentation for the error detection implemented in the parser this year. It adds a new directory in the parser documentation folder which contains 3 files (error detection, syntactic, and semantic errors). Some information was already documented in the lsp docs so it was moved to the new directory. The lsp docs were updated to describe only how the lsp uses the error detection of the parser and reference the error detection docs for more information. The diagnostics api doc was also updated in the lsp folder.
This wasn't split into multiple PRs to avoid merge conflicts since the folder structure was also updated.