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

Parser ambiguity on "(" #372

@mrkmarron

Description

@mrkmarron

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions