Skip to content

Commit

Permalink
housekeeping: add new files; part of version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
artagnon committed Mar 16, 2024
1 parent 96d6e47 commit 55b638e
Show file tree
Hide file tree
Showing 7 changed files with 317 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{json,toml,yml,gyp}]
indent_style = space
indent_size = 2

[*.js]
indent_style = space
indent_size = 2

[*.rs]
indent_style = space
indent_size = 4

[*.{c,cc,h}]
indent_style = space
indent_size = 4

[*.{py,pyi}]
indent_style = space
indent_size = 4

[*.swift]
indent_style = space
indent_size = 4

[*.go]
indent_style = tab
indent_size = 8

[Makefile]
indent_style = tab
indent_size = 8
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* text eol=lf

src/*.json linguist-generated
src/parser.c linguist-generated
src/tree_sitter/* linguist-generated

bindings/** linguist-generated
binding.gyp linguist-generated
setup.py linguist-generated
Makefile linguist-generated
Package.swift linguist-generated
109 changes: 109 additions & 0 deletions Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions Package.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 24 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,45 @@
"author": "Ramkumar Ramachandra",
"license": "Apache-2.0",
"main": "grammar.js",
"types": "bindings/node",
"scripts": {
"compile": "tree-sitter generate",
"update-tests": "tree-sitter test --update",
"test": "tree-sitter test",
"bench": "node bench.mjs"
"bench": "node bench.mjs",
"install": "node-gyp-build",
"prebuildify": "prebuildify --napi --strip"
},
"keywords": [
"tree-sitter",
"lexer",
"parser",
"grammar"
],
"files": [
"grammar.js",
"binding.gyp",
"prebuilds/**",
"bindings/node/*",
"queries/*",
"src/**"
],
"dependencies": {
"nan": "^2.18.0"
"node-addon-api": "^7.1.0",
"node-gyp-build": "^4.8.0"
},
"peerDependencies": {
"tree-sitter": "^0.21.0"
},
"peerDependenciesMeta": {
"tree_sitter": {
"optional": true
}
},
"devDependencies": {
"glob": "^10.3.10",
"tree-sitter-cli": "^0.22.0"
"tree-sitter-cli": "^0.22.0",
"prebuildify": "^6.0.0"
},
"tree-sitter": [
{
Expand Down
29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "tree-sitter-mlir"
description = "Mlir grammar for tree-sitter"
version = "0.0.1"
keywords = ["incremental", "parsing", "tree-sitter", "mlir"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Compilers",
"Topic :: Text Processing :: Linguistic",
"Typing :: Typed"
]
requires-python = ">=3.8"
license.text = "MIT"
readme = "README.md"

[project.urls]
Homepage = "https://github.com/tree-sitter/tree-sitter-mlir"

[project.optional-dependencies]
core = ["tree-sitter~=0.21"]

[tool.cibuildwheel]
build = "cp38-*"
build-frontend = "build"
57 changes: 57 additions & 0 deletions setup.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 55b638e

Please sign in to comment.