munificent / craftinginterpreters

Repository for the book "Crafting Interpreters"
http://www.craftinginterpreters.com/
Other
8.79k stars 1.03k forks source link

simple typo error in the book #953

Closed jossephus closed 3 years ago

jossephus commented 3 years ago

Chapter - 17 - Compiling Expressions Section - 17.4.3 - Unary Negation In function unary the call to function expression should be changed to call parsePrecedence(PREC_UNARY).

expression();

should be changed to

parsePrecedence(PREC_UNARY);