This repository has been archived by the owner on Mar 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from juanjux/bip-5
Migration to the new DSL
- Loading branch information
Showing
120 changed files
with
29,876 additions
and
25,463 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,111 +1,7 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# IPython Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
venv/ | ||
ENV/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
.idea/* | ||
|
||
test/nimcache/* | ||
test/sendmsg | ||
|
||
# pycharm | ||
.idea/* | ||
|
||
# virtualenv | ||
36env/* | ||
install.sh | ||
mypy/* | ||
|
||
Dockerfile | ||
|
||
.sdk/* | ||
driver/main | ||
main | ||
.local/* | ||
|
||
.sdk | ||
build | ||
.mypy_cache | ||
.local/* | ||
.cache/* | ||
__pycache__ | ||
makebuild.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package fixtures | ||
|
||
import ( | ||
"path/filepath" | ||
"testing" | ||
|
||
"github.com/bblfsh/python-driver/driver/normalizer" | ||
"gopkg.in/bblfsh/sdk.v2/sdk/driver" | ||
"gopkg.in/bblfsh/sdk.v2/sdk/driver/fixtures" | ||
) | ||
|
||
const projectRoot = "../../" | ||
|
||
var Suite = &fixtures.Suite{ | ||
Lang: "python", | ||
Ext: ".py", | ||
Path: filepath.Join(projectRoot, fixtures.Dir), | ||
NewDriver: func() driver.BaseDriver { | ||
return driver.NewExecDriverAt(filepath.Join(projectRoot, "build/bin/native")) | ||
}, | ||
Transforms: driver.Transforms{ | ||
Native: normalizer.Native, | ||
Code: normalizer.Code, | ||
}, | ||
BenchName: "issue_server101", | ||
} | ||
|
||
func TestPythonDriver(t *testing.T) { | ||
Suite.RunTests(t) | ||
} | ||
|
||
func BenchmarkPythonDriver(b *testing.B) { | ||
Suite.RunBenchmarks(b) | ||
} |
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,8 @@ | ||
package impl | ||
|
||
import "gopkg.in/bblfsh/sdk.v2/sdk/driver" | ||
|
||
func init() { | ||
// Can be overridden to link a native driver into a Go driver server. | ||
driver.DefaultDriver = driver.NewExecDriver() | ||
} |
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,11 +1,15 @@ | ||
package main | ||
|
||
import ( | ||
_ "github.com/bblfsh/python-driver/driver/impl" | ||
"github.com/bblfsh/python-driver/driver/normalizer" | ||
|
||
"gopkg.in/bblfsh/sdk.v1/sdk/driver" | ||
"gopkg.in/bblfsh/sdk.v2/sdk/driver" | ||
) | ||
|
||
func main() { | ||
driver.Run(normalizer.ToNode, normalizer.Transformers) | ||
driver.Run(driver.Transforms{ | ||
Native: normalizer.Native, | ||
Code: normalizer.Code, | ||
}) | ||
} |
Oops, something went wrong.