Skip to content

Arithmetic priorities mult/div and plus/minus #180

@GloomyLemon

Description

@GloomyLemon

The grammar is not correctly giving equal priority to conventionally equal operators:

    | expression TIMES expression                               #ExprMultiplication
	| expression DIVIDE expression                              #ExprDivision
	| expression PLUS expression                                #ExprAddition
	| expression MINUS expression                               #ExprSubtraction

Furthermore, there are issues concerning adding negative numbers (e.g. 3 + - 5 or 3 + ( -5)), as the grammar does not support these expressions properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions