Skip to content

Reduce IDL ambiguity by replacing *WS with [WS]#1699

Merged
mtdowling merged 1 commit intosmithy-lang:mainfrom
hlbarber:harryb/remove-ws-ambiguity
Mar 31, 2023
Merged

Reduce IDL ambiguity by replacing *WS with [WS]#1699
mtdowling merged 1 commit intosmithy-lang:mainfrom
hlbarber:harryb/remove-ws-ambiguity

Conversation

@hlbarber
Copy link
Copy Markdown
Contributor

@hlbarber hlbarber commented Mar 30, 2023

#1249

A grammar containing

WS = *1( ... )
... = ... *WS ...

defines multiple parse trees.

We can eliminate the ambiguity by replacing *WS with [WS].

@hlbarber hlbarber requested a review from a team as a code owner March 30, 2023 22:17
Copy link
Copy Markdown
Contributor

@JordonPhillips JordonPhillips left a comment

Choose a reason for hiding this comment

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

Note for other readers: the ws production already defines it as one or more.

@mtdowling mtdowling merged commit f8db34d into smithy-lang:main Mar 31, 2023
@hlbarber hlbarber deleted the harryb/remove-ws-ambiguity branch March 31, 2023 23:24
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.

3 participants