Skip to content

Yet another batch of tests #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed

Yet another batch of tests #295

wants to merge 9 commits into from

Conversation

rossberg
Copy link
Member

@rossberg rossberg commented Jun 3, 2016

This time:

  • functions (func, param, result, local)
  • call
  • call_indirect
  • get_local
  • set_local

Also, syntax now disallows signs for any numbers that are uints in the binary encoding.

let num = digit+
let hexnum = "0x" hexdigit+
let nat = num | hexnum
let int = sign nat
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to make int be sign? nat, so that productions like literal don't have to match both int and nat?

Also, what is nat short for?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe "natural number"?

Copy link
Member Author

Choose a reason for hiding this comment

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

@sunfishcode, tokens necessarily define disjoint lexical classes, so to carve out a subclass you need to union in the parser.

Yes, nat is "natural".

@rossberg
Copy link
Member Author

Any opposition to landing these tests as well?

@lukewagner
Copy link
Member

Nope

@rossberg
Copy link
Member Author

Merged into master manually, because Github.

@rossberg rossberg closed this Jun 16, 2016
@rossberg rossberg deleted the mo-tests4 branch May 18, 2017 11:15
ngzhian added a commit to ngzhian/spec that referenced this pull request Nov 4, 2021
It was incorrectly using the non-saturing versions, leading to runtime
traps.
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants