ai-editor-tree-sitter-bsl-dev 0.1.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/LICENSE +21 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/MANIFEST.in +20 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/PKG-INFO +38 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/README.md +19 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/UPSTREAM.md +15 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/ai_editor_tree_sitter_bsl/__init__.py +15 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/ai_editor_tree_sitter_bsl/__init__.pyi +6 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/ai_editor_tree_sitter_bsl/binding.c +28 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/ai_editor_tree_sitter_bsl/py.typed +0 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/ai_editor_tree_sitter_bsl_dev.egg-info/PKG-INFO +38 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/ai_editor_tree_sitter_bsl_dev.egg-info/SOURCES.txt +25 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/ai_editor_tree_sitter_bsl_dev.egg-info/dependency_links.txt +1 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/ai_editor_tree_sitter_bsl_dev.egg-info/top_level.txt +2 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/bsl/grammar.js +841 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/bsl/src/grammar.json +4793 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/bsl/src/node-types.json +2475 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/bsl/src/parser.c +33910 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/bsl/src/tree_sitter/alloc.h +54 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/bsl/src/tree_sitter/array.h +336 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/bsl/src/tree_sitter/parser.h +286 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/sdbl/src/parser.c +83577 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/sdbl/src/tree_sitter/alloc.h +54 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/sdbl/src/tree_sitter/array.h +336 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/grammars/sdbl/src/tree_sitter/parser.h +286 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/pyproject.toml +28 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/setup.cfg +4 -0
- ai_editor_tree_sitter_bsl_dev-0.1.7.3/setup.py +48 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Koryakin Aleksey <alkoleft@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
include LICENSE README.md UPSTREAM.md pyproject.toml setup.py
|
|
2
|
+
include grammars/bsl/grammar.js
|
|
3
|
+
include grammars/bsl/src/grammar.json grammars/bsl/src/node-types.json grammars/bsl/src/parser.c
|
|
4
|
+
include grammars/bsl/src/tree_sitter/*.h
|
|
5
|
+
include grammars/sdbl/src/parser.c
|
|
6
|
+
include grammars/sdbl/src/tree_sitter/*.h
|
|
7
|
+
include ai_editor_tree_sitter_bsl/__init__.py
|
|
8
|
+
include ai_editor_tree_sitter_bsl/__init__.pyi
|
|
9
|
+
include ai_editor_tree_sitter_bsl/binding.c
|
|
10
|
+
include ai_editor_tree_sitter_bsl/py.typed
|
|
11
|
+
prune test
|
|
12
|
+
prune tests
|
|
13
|
+
prune examples
|
|
14
|
+
prune spec
|
|
15
|
+
prune docs
|
|
16
|
+
prune editors
|
|
17
|
+
prune queries
|
|
18
|
+
prune playground
|
|
19
|
+
prune grammars/bsl/test
|
|
20
|
+
global-exclude *.bsl *.os *.sdbl *.sdbl.* *.1c
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ai-editor-tree-sitter-bsl-dev
|
|
3
|
+
Version: 0.1.7.3
|
|
4
|
+
Summary: 1C (BSL) tree-sitter grammar: ai-editor build of alkoleft/tree-sitter-bsl with an extended identifier alphabet
|
|
5
|
+
Author: alkoleft
|
|
6
|
+
Author-email: Vasiliy Zdanovskiy <vasilyvz@gmail.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Homepage, https://github.com/vasilyvz/ai-editor
|
|
9
|
+
Project-URL: Upstream, https://github.com/alkoleft/tree-sitter-bsl
|
|
10
|
+
Keywords: incremental,parsing,tree-sitter,bsl
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Topic :: Software Development :: Compilers
|
|
13
|
+
Classifier: Topic :: Text Processing :: Linguistic
|
|
14
|
+
Classifier: Typing :: Typed
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
|
|
20
|
+
# ai-editor-tree-sitter-bsl
|
|
21
|
+
|
|
22
|
+
tree-sitter grammar and Python binding for the 1C (BSL) language, used by the ai-editor tree engine.
|
|
23
|
+
|
|
24
|
+
This is a build of https://github.com/alkoleft/tree-sitter-bsl (MIT licence, develop branch, commit
|
|
25
|
+
0276d95f, see UPSTREAM.md) published under its own name so that it never collides with the upstream
|
|
26
|
+
`tree-sitter-bsl` distribution. Import name: `ai_editor_tree_sitter_bsl`.
|
|
27
|
+
|
|
28
|
+
Changes against upstream: the identifier alphabet is Latin, Russian, Ukrainian (Є І Ї Ґ) and Belarusian (Ў) letters,
|
|
29
|
+
digits and the underscore, with no digit first. A blank after `&` in a compilation directive stays invalid.
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
import tree_sitter
|
|
33
|
+
import ai_editor_tree_sitter_bsl as bsl
|
|
34
|
+
|
|
35
|
+
parser = tree_sitter.Parser(tree_sitter.Language(bsl.language()))
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The package carries no 1C source code. It does not depend on `tree-sitter`; install a compatible runtime separately.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# ai-editor-tree-sitter-bsl
|
|
2
|
+
|
|
3
|
+
tree-sitter grammar and Python binding for the 1C (BSL) language, used by the ai-editor tree engine.
|
|
4
|
+
|
|
5
|
+
This is a build of https://github.com/alkoleft/tree-sitter-bsl (MIT licence, develop branch, commit
|
|
6
|
+
0276d95f, see UPSTREAM.md) published under its own name so that it never collides with the upstream
|
|
7
|
+
`tree-sitter-bsl` distribution. Import name: `ai_editor_tree_sitter_bsl`.
|
|
8
|
+
|
|
9
|
+
Changes against upstream: the identifier alphabet is Latin, Russian, Ukrainian (Є І Ї Ґ) and Belarusian (Ў) letters,
|
|
10
|
+
digits and the underscore, with no digit first. A blank after `&` in a compilation directive stays invalid.
|
|
11
|
+
|
|
12
|
+
```python
|
|
13
|
+
import tree_sitter
|
|
14
|
+
import ai_editor_tree_sitter_bsl as bsl
|
|
15
|
+
|
|
16
|
+
parser = tree_sitter.Parser(tree_sitter.Language(bsl.language()))
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The package carries no 1C source code. It does not depend on `tree-sitter`; install a compatible runtime separately.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Upstream
|
|
2
|
+
|
|
3
|
+
This directory is built from https://github.com/alkoleft/tree-sitter-bsl (MIT licence, see LICENSE).
|
|
4
|
+
|
|
5
|
+
| item | value |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| upstream repository | https://github.com/alkoleft/tree-sitter-bsl |
|
|
8
|
+
| upstream branch | develop |
|
|
9
|
+
| upstream commit | 0276d95ff0e34e0df4c719243bd19ac1a9d92945 |
|
|
10
|
+
| upstream commit date | 2026-11-03 |
|
|
11
|
+
| upstream version label | 0.1.7 |
|
|
12
|
+
|
|
13
|
+
The first git commit of this directory is the unmodified snapshot of an explicit allowlist of upstream paths
|
|
14
|
+
(grammar.js, the generated parser sources, the Python binding sources, LICENSE). Every later commit is one change of ours.
|
|
15
|
+
No 1C source files, examples, upstream tests or queries are taken.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from ._binding import language, sdbl_language
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def Language():
|
|
5
|
+
"""Return the tree-sitter Language for BSL (imports tree_sitter only when called)."""
|
|
6
|
+
import tree_sitter
|
|
7
|
+
|
|
8
|
+
return(tree_sitter.Language(language()))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def SDBLLanguage():
|
|
12
|
+
"""Return the tree-sitter Language for SDBL (imports tree_sitter only when called)."""
|
|
13
|
+
import tree_sitter
|
|
14
|
+
|
|
15
|
+
return(tree_sitter.Language(sdbl_language()))
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#include <Python.h>
|
|
2
|
+
|
|
3
|
+
typedef struct TSLanguage TSLanguage;
|
|
4
|
+
|
|
5
|
+
const TSLanguage *tree_sitter_bsl(void);
|
|
6
|
+
const TSLanguage *tree_sitter_sdbl(void);
|
|
7
|
+
|
|
8
|
+
static PyObject* py_language(PyObject *self, PyObject *args) {
|
|
9
|
+
return(PyCapsule_New((void *)tree_sitter_bsl(), "tree_sitter.Language", NULL));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
static PyObject* py_sdbl_language(PyObject *self, PyObject *args) {
|
|
13
|
+
return(PyCapsule_New((void *)tree_sitter_sdbl(), "tree_sitter.Language", NULL));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static PyMethodDef methods[] = {
|
|
17
|
+
{"language", py_language, METH_NOARGS, "Get the tree-sitter language for BSL."},
|
|
18
|
+
{"sdbl_language", py_sdbl_language, METH_NOARGS, "Get the tree-sitter language for SDBL."},
|
|
19
|
+
{NULL, NULL, 0, NULL}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
static struct PyModuleDef module = {
|
|
23
|
+
PyModuleDef_HEAD_INIT, "_binding", NULL, -1, methods
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
PyMODINIT_FUNC PyInit__binding(void) {
|
|
27
|
+
return(PyModule_Create(&module));
|
|
28
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ai-editor-tree-sitter-bsl-dev
|
|
3
|
+
Version: 0.1.7.3
|
|
4
|
+
Summary: 1C (BSL) tree-sitter grammar: ai-editor build of alkoleft/tree-sitter-bsl with an extended identifier alphabet
|
|
5
|
+
Author: alkoleft
|
|
6
|
+
Author-email: Vasiliy Zdanovskiy <vasilyvz@gmail.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Homepage, https://github.com/vasilyvz/ai-editor
|
|
9
|
+
Project-URL: Upstream, https://github.com/alkoleft/tree-sitter-bsl
|
|
10
|
+
Keywords: incremental,parsing,tree-sitter,bsl
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Topic :: Software Development :: Compilers
|
|
13
|
+
Classifier: Topic :: Text Processing :: Linguistic
|
|
14
|
+
Classifier: Typing :: Typed
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
|
|
20
|
+
# ai-editor-tree-sitter-bsl
|
|
21
|
+
|
|
22
|
+
tree-sitter grammar and Python binding for the 1C (BSL) language, used by the ai-editor tree engine.
|
|
23
|
+
|
|
24
|
+
This is a build of https://github.com/alkoleft/tree-sitter-bsl (MIT licence, develop branch, commit
|
|
25
|
+
0276d95f, see UPSTREAM.md) published under its own name so that it never collides with the upstream
|
|
26
|
+
`tree-sitter-bsl` distribution. Import name: `ai_editor_tree_sitter_bsl`.
|
|
27
|
+
|
|
28
|
+
Changes against upstream: the identifier alphabet is Latin, Russian, Ukrainian (Є І Ї Ґ) and Belarusian (Ў) letters,
|
|
29
|
+
digits and the underscore, with no digit first. A blank after `&` in a compilation directive stays invalid.
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
import tree_sitter
|
|
33
|
+
import ai_editor_tree_sitter_bsl as bsl
|
|
34
|
+
|
|
35
|
+
parser = tree_sitter.Parser(tree_sitter.Language(bsl.language()))
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The package carries no 1C source code. It does not depend on `tree-sitter`; install a compatible runtime separately.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.md
|
|
4
|
+
UPSTREAM.md
|
|
5
|
+
pyproject.toml
|
|
6
|
+
setup.py
|
|
7
|
+
ai_editor_tree_sitter_bsl/__init__.py
|
|
8
|
+
ai_editor_tree_sitter_bsl/__init__.pyi
|
|
9
|
+
ai_editor_tree_sitter_bsl/binding.c
|
|
10
|
+
ai_editor_tree_sitter_bsl/py.typed
|
|
11
|
+
ai_editor_tree_sitter_bsl_dev.egg-info/PKG-INFO
|
|
12
|
+
ai_editor_tree_sitter_bsl_dev.egg-info/SOURCES.txt
|
|
13
|
+
ai_editor_tree_sitter_bsl_dev.egg-info/dependency_links.txt
|
|
14
|
+
ai_editor_tree_sitter_bsl_dev.egg-info/top_level.txt
|
|
15
|
+
grammars/bsl/grammar.js
|
|
16
|
+
grammars/bsl/src/grammar.json
|
|
17
|
+
grammars/bsl/src/node-types.json
|
|
18
|
+
grammars/bsl/src/parser.c
|
|
19
|
+
grammars/bsl/src/tree_sitter/alloc.h
|
|
20
|
+
grammars/bsl/src/tree_sitter/array.h
|
|
21
|
+
grammars/bsl/src/tree_sitter/parser.h
|
|
22
|
+
grammars/sdbl/src/parser.c
|
|
23
|
+
grammars/sdbl/src/tree_sitter/alloc.h
|
|
24
|
+
grammars/sdbl/src/tree_sitter/array.h
|
|
25
|
+
grammars/sdbl/src/tree_sitter/parser.h
|
ai_editor_tree_sitter_bsl_dev-0.1.7.3/ai_editor_tree_sitter_bsl_dev.egg-info/dependency_links.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|