usql icon indicating copy to clipboard operation
usql copied to clipboard

Lexer is cluttering stdout

Open edgarsi opened this issue 10 years ago • 0 comments

// 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

edgarsi avatar Jan 26 '15 12:01 edgarsi