usql
usql copied to clipboard
Lexer is cluttering stdout
// Antlr lexer is vomiting verbosity when the query is unparsable.
// It's not easily suppressable.
// The lexer doesn't use 'cout'. Overriding puts temporarily doesn't seem possible.
// Overriding permanently can't be good for performance.
// Ideas?
usql> apostrophe' (2) : lexer error 1 : Unexpected character at offset 1, (end of input). This indicates a poorly specified lexer RULE or unterminated input element such as: "STRING["] The lexer was matching from line 1, offset 9, which looks like this: '
Parser Error : apostrophe' Line = 1, Offset = 0