-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refac/skip_parser_build' into dev/v0.0.9
- Loading branch information
Showing
6 changed files
with
33 additions
and
16 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 |
---|---|---|
|
@@ -11,4 +11,6 @@ src/codetext.egg-info/* | |
*.pyc | ||
*.so | ||
*.whl | ||
|
||
.idea | ||
.vscode | ||
*.iml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "codetext" | ||
version = "0.0.8" | ||
version = "0.0.9" | ||
authors = [ | ||
{ name="Dung Manh Nguyen", email="[email protected]" }, | ||
] | ||
|
@@ -17,11 +17,12 @@ classifiers = [ | |
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"tree-sitter>=0.20", | ||
"tree-sitter==0.20.4", | ||
"Levenshtein>=0.20", | ||
"langdetect>=1.0.0", | ||
"bs4>=0.0.1", | ||
"tabulate>=0.9.0" | ||
"tabulate>=0.9.0", | ||
"tree_sitter_languages>=1.10.0" | ||
] | ||
|
||
[project.urls] | ||
|
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,8 +1,12 @@ | ||
from ..src.codetext.utils import build_language | ||
|
||
from tree_sitter_languages import get_language, get_parser | ||
|
||
if __name__ == '__main__': | ||
lang_list = ['python', 'cpp', 'java', 'c-sharp', 'ruby', 'rust', 'javascript', 'php', 'go'] | ||
|
||
for lang in lang_list: | ||
build_language(lang) | ||
# build_language(lang) | ||
try: | ||
get_parser(get_language(lang)) | ||
except: | ||
build_language(lang) |
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