(-) precedence
|
12-08-2022, 07:18 PM
Post: #14
|
|||
|
|||
RE: (-) precedence
Hi, jhallen
Unary minus is stripped from the number, when building tokens Otherwise, unary minus operator token is lost. Example, a snippet for lua llex.c Code: case '-': { /* '-' or '--' (comment) */ -2 ^ 2 will be parsed as '-' '2' '^' '2' Then, from lua precedence table, it converted to ( - (2 ^ 2)) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)