podusowski / pake

Friendly C++ build system which doesn't follow trends
2 stars 1 forks source link

Additional info while parsing error. #11

Closed Quasek closed 9 years ago

Quasek commented 9 years ago

Added additional info like filename, line number, column when parsing error occurs. I don't know what are your plans for doing so, but it helped me already.

podusowski commented 9 years ago

All parsing errors should be wrapped by ui.parse_error or equivalent for non-token parking, ui however should use lexer.FileLocation to print location string. By this abstraction, it will be fairly easy to implement showing the line and underlining it in place when error occurs (it will be similar to clang's output).