tree-sitter-pgn 1.0.6__cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

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.

Potentially problematic release.


This version of tree-sitter-pgn might be problematic. Click here for more details.

@@ -0,0 +1,5 @@
1
+ "Pgn grammar for tree-sitter"
2
+
3
+ from ._binding import language
4
+
5
+ __all__ = ["language"]
@@ -0,0 +1 @@
1
+ def language() -> int: ...
Binary file
@@ -0,0 +1,27 @@
1
+ #include <Python.h>
2
+
3
+ typedef struct TSLanguage TSLanguage;
4
+
5
+ TSLanguage *tree_sitter_pgn(void);
6
+
7
+ static PyObject* _binding_language(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(args)) {
8
+ return PyCapsule_New(tree_sitter_pgn(), "tree_sitter.Language", NULL);
9
+ }
10
+
11
+ static PyMethodDef methods[] = {
12
+ {"language", _binding_language, METH_NOARGS,
13
+ "Get the tree-sitter language for this grammar."},
14
+ {NULL, NULL, 0, NULL}
15
+ };
16
+
17
+ static struct PyModuleDef module = {
18
+ .m_base = PyModuleDef_HEAD_INIT,
19
+ .m_name = "_binding",
20
+ .m_doc = NULL,
21
+ .m_size = -1,
22
+ .m_methods = methods
23
+ };
24
+
25
+ PyMODINIT_FUNC PyInit__binding(void) {
26
+ return PyModule_Create(&module);
27
+ }
File without changes
@@ -0,0 +1,27 @@
1
+ ; highlights.scm
2
+
3
+ [
4
+ (annotation)
5
+ (inline_comment)
6
+ (rest_of_line_comment)
7
+ (old_style_twic_section_comment)
8
+ ] @comment
9
+
10
+ (tagpair_delimiter_open) @punctuation.bracket
11
+ (tagpair_delimiter_close) @punctuation.bracket
12
+ (tagpair_key) @type
13
+ (tagpair tagpair_value_delimiter: (double_quote) @string)
14
+ (tagpair_value_contents) @string
15
+
16
+ (movetext (move_number) @function)
17
+ (movetext (san_move) @function)
18
+ (movetext (lan_move) @function)
19
+
20
+ (variation_delimiter_open) @operator
21
+ (variation_delimiter_close) @operator
22
+ (variation_movetext variation_san_move: (san_move) @operator)
23
+ (variation_movetext variation_move_number: (move_number) @operator)
24
+
25
+ (result_code) @variable
26
+
27
+ (ERROR) @property
@@ -0,0 +1,25 @@
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) 2021, Roland Walker
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.1
2
+ Name: tree-sitter-pgn
3
+ Version: 1.0.6
4
+ Summary: PGN grammar for tree-sitter
5
+ License: BSD
6
+ Project-URL: Homepage, https://github.com/rolandwalker/tree-sitter-pgn
7
+ Keywords: incremental,parsing,tree-sitter,PGN,chess
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: BSD License
10
+ Classifier: Topic :: Software Development :: Compilers
11
+ Classifier: Topic :: Text Processing :: Linguistic
12
+ Classifier: Typing :: Typed
13
+ Requires-Python: >=3.8
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Provides-Extra: core
17
+ Requires-Dist: tree-sitter~=0.23.0; extra == "core"
18
+
19
+ # tree-sitter-pgn
20
+
21
+ ## Overview
22
+
23
+ Chess Portable Game Notation (PGN) grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).
24
+
25
+ ## Used in
26
+
27
+ * [Emacs pygn-mode](https://github.com/dwcoates/pygn-mode)
28
+
29
+ ## Example
30
+
31
+ <a href="/doc/images/pgn_syntax_highlight.png">
32
+ <img src="/doc/images/pgn_syntax_highlight.png" width=500/>
33
+ </a>
34
+
35
+ ## References
36
+
37
+ * [PGN specification](http://www.saremba.de/chessgml/standards/pgn/pgn-complete.htm)
38
+ * [Commonly-used extensions](https://www.enpassant.dk/chess/palview/enhancedpgn.htm)
39
+ * [Commonly-used annotation glyphs](https://en.wikipedia.org/wiki/Numeric_Annotation_Glyphs)
@@ -0,0 +1,11 @@
1
+ tree_sitter_pgn/binding.c,sha256=f0wnkjshn03m8OnEMcCgHzXlieObCAo50sacARwJ4-Y,677
2
+ tree_sitter_pgn/__init__.pyi,sha256=8xf7bY1szgDY9HRJ7FJ326So4SFgMiSRfCB4LADkTpU,27
3
+ tree_sitter_pgn/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tree_sitter_pgn/_binding.abi3.so,sha256=1u69lwLwkkmixVLG-ckxjHMAAKCGIi97xIpBr52zxdk,626248
5
+ tree_sitter_pgn/__init__.py,sha256=ZiLr1Q0znhhSjnr-HOQ9eYQGPl377jelB9rBPHWpUFc,86
6
+ tree_sitter_pgn/queries/highlights.scm,sha256=f0ZNijh1NqOo3M4c2ChC0ra5SjPtFmR0CJg_-gcrSUU,676
7
+ tree_sitter_pgn-1.0.6.dist-info/RECORD,,
8
+ tree_sitter_pgn-1.0.6.dist-info/WHEEL,sha256=mdJMJWcNV2i7yjl8oUVzOhRv0ZUdWq6LM5ESRUQpbZM,150
9
+ tree_sitter_pgn-1.0.6.dist-info/LICENSE,sha256=OQC_60bW3_K5dikbtjNFxNBdIsqGpiKnMdnRlEZW9pY,1323
10
+ tree_sitter_pgn-1.0.6.dist-info/top_level.txt,sha256=GT5VMTItAEXgTjoJj2gP_fQVqZd7tY5TIRpOgyp1zlU,25
11
+ tree_sitter_pgn-1.0.6.dist-info/METADATA,sha256=Ric9_8g3l_8UxpGAW0Y11RG6PG2KY7hJM0hZddtFRGc,1243
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.44.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp38-abi3-manylinux_2_17_aarch64
5
+ Tag: cp38-abi3-manylinux2014_aarch64
6
+
@@ -0,0 +1,2 @@
1
+ _binding
2
+ tree_sitter_pgn