Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/projects/modules/src/main.mth
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ df main() i64 {
let d: i64 = geo::distance(p1, p2);
let area: i64 = mul(p1.x, p1.y);
return util::add(d, area);
}
}
2 changes: 1 addition & 1 deletion examples/symbolic/with_loops.mth
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ df main() u32 {
}

return e[x=1];
}
}
50 changes: 50 additions & 0 deletions features/tree-sitter-mathic/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
root = true

[*]
charset = utf-8

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

[*.{js,ts}]
indent_style = space
indent_size = 2

[*.scm]
indent_style = space
indent_size = 2

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

[*.rs]
indent_style = space
indent_size = 4

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

[*.swift]
indent_style = space
indent_size = 4

[*.java]
indent_style = space
indent_size = 4

[*.go]
indent_style = tab
indent_size = 8

[Makefile]
indent_style = tab
indent_size = 8

[parser.c]
indent_size = 2

[{alloc,array,parser}.h]
indent_size = 2
46 changes: 46 additions & 0 deletions features/tree-sitter-mathic/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
* text=auto eol=lf

# Generated source files
src/*.json linguist-generated
src/parser.c linguist-generated
src/tree_sitter/* linguist-generated

# C bindings
bindings/c/** linguist-generated
CMakeLists.txt linguist-generated
Makefile linguist-generated

# Rust bindings
bindings/rust/* linguist-generated
Cargo.toml linguist-generated
Cargo.lock linguist-generated

# Node.js bindings
bindings/node/* linguist-generated
binding.gyp linguist-generated
package.json linguist-generated
package-lock.json linguist-generated

# Python bindings
bindings/python/** linguist-generated
setup.py linguist-generated
pyproject.toml linguist-generated

# Go bindings
bindings/go/* linguist-generated
go.mod linguist-generated
go.sum linguist-generated

# Swift bindings
bindings/swift/** linguist-generated
Package.swift linguist-generated
Package.resolved linguist-generated

# Zig bindings
bindings/zig/* linguist-generated
build.zig linguist-generated
build.zig.zon linguist-generated

# Java bindings
pom.xml linguist-generated
bindings/java/** linguist-generated
48 changes: 48 additions & 0 deletions features/tree-sitter-mathic/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Rust artifacts
target/

# Node artifacts
build/
prebuilds/
node_modules/

# Swift artifacts
.build/

# Go artifacts
_obj/

# Python artifacts
.venv/
dist/
*.egg-info
*.whl

# C artifacts
*.a
*.so
*.so.*
*.dylib
*.dll
*.pc
*.exp
*.lib

# Zig artifacts
.zig-cache/
zig-cache/
zig-out/

# Example dirs
/examples/*/

# Grammar volatiles
*.wasm
*.obj
*.o

# Archives
*.tar.gz
*.tgz
*.zip
*.jar
76 changes: 76 additions & 0 deletions features/tree-sitter-mathic/CMakeLists.txt

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

34 changes: 34 additions & 0 deletions features/tree-sitter-mathic/Cargo.toml

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

115 changes: 115 additions & 0 deletions features/tree-sitter-mathic/Makefile

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

Loading
Loading