Closed Quasek closed 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).
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.