sqlite-parser icon indicating copy to clipboard operation
sqlite-parser copied to clipboard

Feature Request: Add location data to AST

Open jdrew1303 opened this issue 8 years ago • 1 comments

Adding location data to nodes in the AST would allow for 'possibly' new languages to be built using the AST as a target (stage 2 of my master plan, think SASS for SQL 😉 ). (This is similar to how ES6 -> ES5 transpilers work, and indeed Java, Scala, etc).

The parser in this case could be thought of as a reference spec for an SQL AST.

jdrew1303 avatar Oct 24 '16 15:10 jdrew1303

I'd like to use the parser as basis for a linter. But without location data, there is no way of knowing where a certain AST element originated in the query.

DanielSWolf avatar Aug 31 '18 12:08 DanielSWolf