Skip to content

Submodule parser errors#137

Merged
Champii merged 3 commits intodevelopfrom
submodule_parser_errors
Jun 26, 2022
Merged

Submodule parser errors#137
Champii merged 3 commits intodevelopfrom
submodule_parser_errors

Conversation

@Champii
Copy link
Copy Markdown
Owner

@Champii Champii commented Jun 24, 2022

No description provided.

@Champii Champii added the bug Something isn't working label Jun 24, 2022
@Champii Champii self-assigned this Jun 24, 2022
@Champii Champii changed the base branch from master to develop June 24, 2022 12:56
@Champii Champii linked an issue Jun 24, 2022 that may be closed by this pull request
@Champii
Copy link
Copy Markdown
Owner Author

Champii commented Jun 24, 2022

The actual error location is swallowed by the parent parser.
We must show the correct span location

@Champii
Copy link
Copy Markdown
Owner Author

Champii commented Jun 26, 2022

Curiously, it works when passing the --nostd argument.

@Champii
Copy link
Copy Markdown
Owner Author

Champii commented Jun 26, 2022

The diagnostic is correctly propagated from the submodule, that fix the issue.

There is still a bug on the files propagation, only the first file module is taken into account.

@Champii Champii marked this pull request as ready for review June 26, 2022 03:25
@Champii Champii merged commit 65674c5 into develop Jun 26, 2022
@Champii Champii deleted the submodule_parser_errors branch June 26, 2022 03:39
Champii added a commit that referenced this pull request Jun 26, 2022
* Bump version

* Update README to show the right version of llvm

* Add the self returning method with `@->`

* Add tests for self returning function

* Add an embryo of documentation with mdbook

* Documentation

* Fix doc about struct

* Doc

* Add \0 as escaped char and generalize escaped char parsing (#125)

* Add \0 as escaped char and generalize escaped char parsing

* Inline parser variable in parse_char method

* Readme

* Readme

* Escaped chars (#132)

* Add \0 as escaped char and generalize escaped char parsing

* Inline parser variable in parse_char method

* Better unescaped handling

* Fix escaped backslack and add tests

* Restored string unescape

* Fixed the `\0` escaped char

* Doc

* Introducing default trait methods (#128)

* Introducing default trait methods

* Allow for empty impl

* Readme

* Add tests

* Allow for default method overriding

* Add tests for default method overriding

* Doc

* Fix dot notation newline (#140)

* Fix dot notation

by restricting newline in dot notation when parsing an argument

* Readme

* Struct fields are no more reordered. (#138)

* Struct fields are no more reordered.

* Removed comment

* Removed some old readme entry

* Submodule parser errors (#137)

* Subparser now fails when error

* Transformed the module declaration error to failure

* Fixed the diagnostic in submodule not showing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Submodule parser errors are ignored

1 participant