Kmeakin requested wasmtime-compiler-reviewers for a review on PR #9529.
Kmeakin requested elliottt for a review on PR #9529.
Kmeakin opened PR #9529 from Kmeakin:km/isle/block-comments
to bytecodealliance:main
:
Solves https://github.com/bytecodealliance/wasmtime/issues/3542.
Also adjusts the lexical syntax to be closer to wasm while I was at it ("\f" is no longer considered whitespace, but no-one uses that character anyway)
We could also align the line-comment syntax with wasm (require two semicolons to start a line comment instead of one), but that would IMO create too much churn
Kmeakin edited PR #9529:
Solves https://github.com/bytecodealliance/wasmtime/issues/3542.
Also adjusts the lexical syntax to be closer to wasm while I was at it: "\r" can be used to terminate a line-comment, and "\f" is no longer considered whitespace, but no-one uses that character anyway.
We could also align the line-comment syntax with wasm (require two semicolons to start a line comment instead of one), but that would IMO create too much churn
Kmeakin updated PR #9529.
Kmeakin updated PR #9529.
cfallin submitted PR review:
Thanks!
cfallin created PR review comment:
Can we add a test for the nested block comment case as well?
cfallin created PR review comment:
It looks like the parser below supports nested block comments; can we represent this in the BNF?
(Maybe something like
<block-char> += <block-comment>
, i.e., a nested comment is one<block-char>
in the parse tree)
Kmeakin submitted PR review.
Kmeakin created PR review comment:
The nesting is represented by the
| <block-comment>
alternative. I copied pretty much directly from the wasm spec: https://webassembly.github.io/spec/core/text/lexical.html#comments
Kmeakin updated PR #9529.
Kmeakin updated PR #9529.
github-actions[bot] commented on PR #9529:
Subscribe to Label Action
cc @cfallin, @fitzgen
<details>
This issue or pull request has been labeled: "cranelift", "cranelift:area:x64", "isle"Thus the following users have been cc'd because of the following labels:
- cfallin: isle
- fitzgen: isle
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
cfallin submitted PR review.
cfallin created PR review comment:
Ah, I missed the last option -- very sorry. Thanks, this looks right!
cfallin submitted PR review.
cfallin merged PR #9529.
Last updated: Dec 23 2024 at 12:05 UTC