Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Parser ambiguity on "(" #372

Open
mrkmarron opened this issue Nov 20, 2020 · 0 comments
Open

Parser ambiguity on "(" #372

mrkmarron opened this issue Nov 20, 2020 · 0 comments

Comments

@mrkmarron
Copy link
Contributor

There is an ambiguity in the expression and type parser:
(1 + 2) and (A&B)::foo()

The current lookahead will always assume the ( corresponds to an expression and then will be confused by the following ) after the B type.

Need to add a special case lookahead when parsing an expression to see if the (...) is followed by a ::. We may also want to deal with the <(... ambiguity as well where we need to distinguish the <(T)> case from the < (1+2) case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant