Closed laurenthuberdeau closed 4 months ago
The error messages are not very useful and understanding why pnut refuses to compile a program is very difficult since no location information is given. This PR tracks the position of the last token and include it on syntax errors.
Context
The error messages are not very useful and understanding why pnut refuses to compile a program is very difficult since no location information is given. This PR tracks the position of the last token and include it on syntax errors.