-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse: tree update for visitor (#602)
* parse: ast tree visitor, and walker * parse: tree.Relation insteadof TableOrSubquery+JoinClause * parse: change statement structure * parse: move sql-grammar-go in kwil-db * update kuneiform version * made select node names consistent * renamed selects --------- Co-authored-by: Brennan Lamey <66885902+brennanjl@users.noreply.github.com>
- Loading branch information
Showing
86 changed files
with
18,741 additions
and
3,177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "proto"] | ||
path = proto | ||
url = https://github.com/kwilteam/proto | ||
[submodule "parse/sql/antlr-grammar"] | ||
path = parse/sql/antlr-grammar | ||
url = https://github.com/kwilteam/sql-grammar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '3' | ||
|
||
tasks: | ||
sql: | ||
desc: Generate sql grammar go code. | ||
cmds: | ||
- rm -rf parse/sql/grammar/* | ||
- rm -rf parse/sql/antlr-grammar/{gen,.antlr}/* | ||
- cd parse/sql/antlr-grammar/ && ./generate.sh Go grammar ../grammar | ||
sources: | ||
- parse/sql/antlr-grammar/*.g4 | ||
generates: | ||
- parse/sql/grammar/*.{go,interp,tokens} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ version: "3" | |
|
||
includes: | ||
pb: ./Taskfile-pb.yml | ||
antlr: ./Taskfile-antlr.yml | ||
|
||
tasks: | ||
default: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.