sqlite-parser
sqlite-parser copied to clipboard
Feature Request: Add location data to AST
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.
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.