Skip to content

ISLE: Add block comments#9529

Merged
cfallin merged 3 commits into
bytecodealliance:mainfrom
Kmeakin:km/isle/block-comments
Oct 31, 2024
Merged

ISLE: Add block comments#9529
cfallin merged 3 commits into
bytecodealliance:mainfrom
Kmeakin:km/isle/block-comments

Conversation

@Kmeakin
Copy link
Copy Markdown
Contributor

@Kmeakin Kmeakin commented Oct 31, 2024

Solves #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 Kmeakin requested a review from a team as a code owner October 31, 2024 16:33
@Kmeakin Kmeakin requested review from elliottt and removed request for a team October 31, 2024 16:33
@Kmeakin Kmeakin force-pushed the km/isle/block-comments branch 2 times, most recently from 3e3dbfa to 4441282 Compare October 31, 2024 16:52
Copy link
Copy Markdown
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread cranelift/isle/isle/src/lexer.rs Outdated
Comment thread cranelift/isle/docs/language-reference.md
@Kmeakin Kmeakin force-pushed the km/isle/block-comments branch from 4441282 to 2e3f149 Compare October 31, 2024 17:39
Closes bytecodealliance#3542

Copyright (c) 2024, Arm Limited.

Signed-off-by: Karl Meakin <karl.meakin@arm.com>
Copyright (c) 2024, Arm Limited.

Signed-off-by: Karl Meakin <karl.meakin@arm.com>
The ISLE language is superficially similar to WebAssembly, so to reduce
confusion I think it would help to copy the wasm spec where possible.

This is technically a breaking change, since `\x0C` (`\f`) will no longer be
lexed as whitespace, but this character is exceedingly rare in practice.

Copyright (c) 2024, Arm Limited.

Signed-off-by: Karl Meakin <karl.meakin@arm.com>
@Kmeakin Kmeakin force-pushed the km/isle/block-comments branch from 2e3f149 to 1c99101 Compare October 31, 2024 17:49
@github-actions github-actions Bot added cranelift Issues related to the Cranelift code generator cranelift:area:x64 Issues related to x64 codegen isle Related to the ISLE domain-specific language labels Oct 31, 2024
@github-actions
Copy link
Copy Markdown

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 .github/subscribe-to-label.json configuration file.

Learn more.

@cfallin cfallin added this pull request to the merge queue Oct 31, 2024
Merged via the queue into bytecodealliance:main with commit 4ee3553 Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:area:x64 Issues related to x64 codegen cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants