-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[go] Move generated parser to its own folder
- if we put it at project root and run gofmt ., vendor folder will get formatted as well - golang/go#22173
- Loading branch information
Showing
14 changed files
with
63 additions
and
4 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
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 +1,2 @@ | ||
vendor | ||
vendor | ||
.idea/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,21 @@ | ||
package rcl | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/antlr/antlr4/runtime/Go/antlr" | ||
asst "github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestRCLParser_Rcl(t *testing.T) { | ||
assert := asst.New(t) | ||
input, err := antlr.NewFileStream("testdata/db-xephonk.rcl") | ||
assert.Nil(err) | ||
lexer := NewRCLLexer(input) | ||
stream := antlr.NewCommonTokenStream(lexer, 0) | ||
p := NewRCLParser(stream) | ||
p.BuildParseTrees = true | ||
tree := p.Rcl() | ||
// TODO: visit the tree | ||
t.Log(tree) | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,15 @@ | ||
// a database example for awesome-time-series-database | ||
// https://github.com/xephonhq/awesome-time-series-database | ||
name = "Xephon-K" | ||
backends = [ | ||
"Cassandra", | ||
"Local Disk" | ||
] | ||
oss = true | ||
github = "https://github.com/xephonhq/xephon-k" | ||
articles = [ | ||
{ | ||
name = "Introduction to Time Series Database", | ||
url = "https://zhuanlan.zhihu.com/p/29367404" | ||
} | ||
] |