munificent / craftinginterpreters

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

"Report" method — not shown in text? #1062

Closed Spooghetti420 closed 2 years ago

Spooghetti420 commented 2 years ago

In the Parsing Expressions chapter, the code makes mention of a report() function, and uses it in three places, but this function doesn't appear to be defined anywhere? I'm assuming the private ParseError error is supposed to be: private ParseError report.

Sidewinder1138 commented 2 years ago

I believe it is defined in Chapter 4, here: http://www.craftinginterpreters.com/scanning.html#error-handling