Skip to content

Commit

Permalink
Allow parsing unary -
Browse files Browse the repository at this point in the history
  • Loading branch information
whonore committed Dec 13, 2021
1 parent f8d5ade commit ba0ade2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shunting-yard.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ static const Token NO_TOKEN = {TOKEN_NONE, NULL};
static const Operator OPERATORS[] = {
{"!", 1, 1, OPERATOR_UNARY, OPERATOR_RIGHT},
{"~", 1, 1, OPERATOR_UNARY, OPERATOR_RIGHT},
{"-", 1, 1, OPERATOR_UNARY, OPERATOR_RIGHT},
{"*", 1, 2, OPERATOR_BINARY, OPERATOR_LEFT},
{"/", 1, 2, OPERATOR_BINARY, OPERATOR_LEFT},
{"%", 1, 2, OPERATOR_BINARY, OPERATOR_LEFT},
Expand Down

0 comments on commit ba0ade2

Please sign in to comment.