Skip to content
Advertisement

Tag: antlr

How to parse quotes correctly?

I’m using ANTLR with Presto grammar in order to parse SQL queries. This is the definition of the string I’m using: However, when I have a query like this: it mess things up as it parses : ”’,’ as one string. When I used the following rule instead: I didn’t parse correctly queries like: which of course is a legal

Advertisement