eagr opened PR #9903 from eagr:isle-bnf
to bytecodealliance:main
:
- correct
<pattern-arg>
syntax(?)- re-org items in order to improve readability
eagr requested wasmtime-compiler-reviewers for a review on PR #9903.
eagr requested fitzgen for a review on PR #9903.
eagr submitted PR review.
eagr created PR review comment:
for sake of completeness. I suppose they're also ignored by the parser?
eagr created PR review comment:
let's just use the dumbest mapping :)
eagr created PR review comment:
I could be very wrong about this. But having this kind of infix operator defined in S-expression feels weird and I couldn't find it in the extractor parser, so I think this is a typo?
eagr created PR review comment:
technically not a value, could be confusing
eagr created PR review comment:
technically it's a field of the variant
github-actions[bot] commented on PR #9903:
Subscribe to Label Action
cc @cfallin, @fitzgen
<details>
This issue or pull request has been labeled: "cranelift", "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 created PR review comment:
Actually no -- the full list of whitespace characters is here. The original list was correct.
cfallin submitted PR review:
Thanks for the PR! Unfortunately this introduces some inaccuracies and I have a lot of comments -- see below.
cfallin created PR review comment:
Eh, there is a reason I had chosen
typedecl
--type
is too close toty
(the latter reads as an abbreviation of the former with no semantic difference), the existing nonterminal for type expressions, and there is a semantic difference between uses of a type and the form that declares them. Let's stick withtypedecl
.
cfallin created PR review comment:
This is outdated syntax, sorry -- we removed argument polarity a while ago. The whole
<expr>
case needs to go away and you can inline<pattern>
for<pattern-arg>
since we don't have the distinction anymore.
cfallin created PR review comment:
Well, here I would disagree again. You can call it a "type expression" if you want, but it's a value in the universe of types. It is definitely not a
typedef
:typedef
is, in my mind, another name for the whole form that defines a new type (like a typedef in C/C++ for example). Perhaps "type body" if you want to distinguish the semantic place this occupies -- an expanded form that can be named in atype
declaration form's right-hand side but not in-line wherever types are given.
eagr submitted PR review.
eagr created PR review comment:
Should have double checked first, sorry about that.
eagr submitted PR review.
eagr created PR review comment:
Yeah, typedef is worse than typevalue.. I did mean something like "type body".
eagr edited PR review comment.
Out of curiosity, is there a reason for
convert
instead ofconvertor
, given theextractor
?
eagr updated PR #9903.
cfallin submitted PR review.
cfallin commented on PR #9903:
Out of curiosity, is there a reason for
convert
instead ofconvertor
, given theextractor
?Locally it made sense as "convert T to U using foo"; one could debate the many options further but we already had that discussion three(?) years ago and it's unlikely to change now absent good reason.
cfallin merged PR #9903.
Last updated: Jan 24 2025 at 00:11 UTC