Skip to content

Conversation

tlively
Copy link
Member

@tlively tlively commented Feb 6, 2024

In addition to normal identifiers, support parsing identifiers of the format
$"...". This format is not yet allowed by the standard, but it is a popular
proposed extension (see WebAssembly/spec#617 and
WebAssembly/annotations#21).

Binaryen has historically allowed a similar format and has supported arbitrary
non-standard identifier characters, so it's much easier to support this extended
syntax than to fix everything to use the restricted standard syntax.

@tlively tlively requested a review from kripken February 6, 2024 00:31
@tlively
Copy link
Member Author

tlively commented Feb 6, 2024

@tlively tlively changed the title [Parser} Support string-style identifiers [Parser] Support string-style identifiers Feb 6, 2024
@tlively
Copy link
Member Author

tlively commented Feb 6, 2024

Merge activity

  • Feb 6, 4:06 PM EST: @tlively started a stack merge that includes this pull request via Graphite.
  • Feb 6, 4:07 PM EST: Graphite rebased this pull request as part of a merge.
  • Feb 6, 4:35 PM EST: @tlively merged this pull request with Graphite.
Base automatically changed from array-new-fixed-len to main February 6, 2024 21:06
In addition to normal identifiers, support parsing identifiers of the format `$"..."`. This format is not yet allowed by the standard, but it is a popular proposed extension (see WebAssembly/spec#617 and WebAssembly/annotations#21). Binaryen has historically allowed a similar format and has supported arbitrary non-standard identifier characters, so it's much easier to support this extended syntax than to fix everything to use the restricted standard syntax.
@tlively tlively force-pushed the parser-string-names branch from 77ff8b6 to 00a5702 Compare February 6, 2024 21:06
@tlively tlively merged commit 8cce4d1 into main Feb 6, 2024
@tlively tlively deleted the parser-string-names branch February 6, 2024 21:35
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
In addition to normal identifiers, support parsing identifiers of the format `$"..."`. This format is not yet allowed by the standard, but it is a popular proposed extension (see WebAssembly/spec#617 and WebAssembly/annotations#21). Binaryen has historically allowed a similar format and has supported arbitrary non-standard identifier characters, so it's much easier to support this extended syntax than to fix everything to use the restricted standard syntax.
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants