Skip to content

Parser: accept exprs like $$0++--. #67

Description

@Alonely0

Title. Isomorphic expressions also fail to parse. These should parse the same way we currently accept $($0++)--. This is a bug because GNU AWK does accept them, but very amusingly, their docs give it as an example of an incorrect expression:

Also, operators cannot be combined in a way that violates the precedence rules; for example, $$0++-- is not a valid expression because the first $ has higher precedence than the ++; to avoid the problem the expression can be rewritten as $($0++)--.

Thus, and if possible, I would like the patch to be easily revertible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GNU bugBugs of gawk we must reproduce.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions