Skip to content

Should something like - -2 parse?  #88

@lucianecchi

Description

@lucianecchi

Hi, I am trying to work out a way to properly deal with exponentiation and expressions like -1^-1.5 without having to add a new token type but so far the only way I can think of has as a side effect making - -2 a valid expression. Could it be considered so? Or should it be rejected?
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions