Initialise token precedence rule.
Thanks to Philosopher for the catch.
This commit is contained in:
@@ -134,6 +134,7 @@ static void newToken(struct Parser* p, int pos, int type,
|
|||||||
tok->prev = last;
|
tok->prev = last;
|
||||||
tok->children = 0;
|
tok->children = 0;
|
||||||
tok->lastChild = 0;
|
tok->lastChild = 0;
|
||||||
|
tok->rule = 0;
|
||||||
|
|
||||||
// Context sensitivity hack: a "-" following a binary operator of
|
// Context sensitivity hack: a "-" following a binary operator of
|
||||||
// equal or higher precedence must be a unary negation. Needed to
|
// equal or higher precedence must be a unary negation. Needed to
|
||||||
|
|||||||
Reference in New Issue
Block a user