Skip to content

Update the spec test suite submodule#1576

Merged
alexcrichton merged 3 commits intobytecodealliance:mainfrom
alexcrichton:update-spec-test-submodule
May 28, 2024
Merged

Update the spec test suite submodule#1576
alexcrichton merged 3 commits intobytecodealliance:mainfrom
alexcrichton:update-spec-test-submodule

Conversation

@alexcrichton
Copy link
Member

@alexcrichton alexcrichton commented May 25, 2024

This commit updates the spec test suite submodule and notably implements the extended syntax in the text format for quoted identifiers. Names such as $"foo" are now valid and equivalent to $foo. This doesn't yet update any wasmprinter-based printing to use this new syntax, it's just parsed to pass the various spec tests added.

This additionally updates the lexer to have a first-class notion of an annotation instead of being lumped in with "reserved" tokens to avoid having to deal with things like @"foo""bar" which is a single reserved token but technically not an annotation. This is now modelled differently within the lexer as TokenKind::Annotation or TokenKind::Reserved. (and can have a better first-class error in the future).

This commit updates the spec test suite submodule and notably
implements the extended syntax in the text format for quoted
identifiers. Names such as `$"foo"` are not valid and equivalent to
`$foo`. This doesn't yet update any `wasmprinter`-based printing to use
this new syntax, it's just parsed to pass the various spec tests added.

This additionally updates the lexer to have a first-class notion of an
annotation instead of being lumped in with "reserved" tokens to avoid
having to deal with things like `@"foo""bar"` which is a single reserved
token but technically not an annotation. This is now modelled
differently within the lexer as `TokenKind::Annotation` or
`TokenKind::Reserved`. (and can have a better first-class error in the
future).
@alexcrichton alexcrichton added this pull request to the merge queue May 28, 2024
Merged via the queue into bytecodealliance:main with commit b3c5db0 May 28, 2024
@alexcrichton alexcrichton deleted the update-spec-test-submodule branch May 28, 2024 23:55
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.

2 participants