faukah
e4e643086b
refactor: rework nix flake
...
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2025-09-09 03:03:35 -04:00
Amaan Qureshi
da61d7cac5
feat: add nix flake
2025-09-01 22:48:37 -04:00
Antonin Décimo
f0571b1e33
feat: Windows support using MinGW-w64 ( #4201 )
...
Building tree-sitter on Windows within a Cygwin or MSYS2 environment
for MinGW-w64 targets should work. As there's no configure-like step,
the tools have to be specified with:
make CC=x86_64-w64-mingw32-gcc \
AR=x86_64-w64-mingw32-ar \
STRIP=x86_64-w64-mingw32-strip
Useful reference:
[How to build and use DLLs on Windows](https://nullprogram.com/blog/2021/05/31/ )
This commit doesn't tag public functions with dllexport or
dllimport. This results in exporting non-static functions visible
between translation units, and generating slightly less efficient code
for calling exported functions from the DLL.
This commit doesn't include support to build libtree-sitter with MSVC or
clang-cl, but generates a libtree-sitter.lib file for MSVC/clang-cl
consumers.
2025-02-12 16:31:06 -08:00
Amaan Qureshi
2cae67892e
feat(web)!: rewrite the library in TypeScript
2025-01-21 12:36:15 -05:00
ObserverOfTime
26c1202058
build(lib): build using cmake
2024-09-07 18:38:05 -04:00
fwcd
a861fabfbd
chore: add .build to gitignore
2024-07-30 10:32:37 +03:00
ObserverOfTime
f50123a3ec
refactor(scripts): clean up bash scripts
2024-07-28 10:12:55 +03:00
mochalins
3da7deedd8
build(zig): Git ignore updated Zig cache directory
2024-06-10 23:07:50 -04:00
Andrew Hlynskyi
897c187786
fix: make install should install files with default perms
2023-08-21 06:19:49 +03:00
Auguste Rame
834ae233cb
Add build.zig for easy use as a Zig library
2023-07-16 16:39:55 +03:00
ActuallyTaylor
ddc629ae53
Added Swift Package Manager entry point.
2023-07-12 11:37:04 -04:00
Max Brunsfeld
af00782dfd
Add files needed for using clangd
2022-02-22 09:44:50 -08:00
Max Brunsfeld
e22b42c9e6
Bump lib tree-sitter dependency versions in loader crate
2021-09-03 13:29:03 -07:00
Andrew Hlynskyi
ef76c03e38
Added libtree-sitter.so* files into .gitignore
2021-03-08 10:06:59 +02:00
Max Brunsfeld
3456a21f0d
Start work on restructuring query implementation to deal w/ optionals and repeats better
2020-05-07 12:41:25 -07:00
Max Brunsfeld
66e006105c
Build and test wasm on CI
2019-04-26 14:38:13 -07:00
Max Brunsfeld
e39d69dfa7
Add a playground to the docs site
2019-04-26 13:36:28 -07:00
Max Brunsfeld
1fc0525940
Start work on a WASM binding
2019-04-25 17:27:39 -07:00
Max Brunsfeld
6105bf9909
Include error recovery examples in test suite
2019-01-20 16:58:49 -08:00
Max Brunsfeld
e7bb57550b
Use gzip for release assets so they can easily be extracted from node
2019-01-16 13:07:54 -08:00
Max Brunsfeld
47607cecf4
Reorganize repo, add rust CLI and binding code,
2019-01-04 17:31:49 -08:00
Max Brunsfeld
97ca3bc2d1
Add rust tree-sitter runtime binding in lib directory
2019-01-04 17:16:34 -08:00
Max Brunsfeld
a4c4b85a16
Initial commit
2018-12-05 16:19:21 -08:00
Max Brunsfeld
47918070f6
Add a single-source file way of building the runtime library
2018-11-13 15:36:21 -08:00
Max Brunsfeld
08217fff8d
Get basic parsing working, add some unit tests
2018-05-17 17:16:35 -07:00
Max Brunsfeld
6e4115548c
Initial commit
2018-05-17 14:30:03 -07:00
Max Brunsfeld
d2019cd12c
Ignore log file
2018-04-02 09:15:11 -07:00
Phil Turnbull
798ef5e4dc
Add libFuzzer support
...
This adds support for fuzzing tree-sitter grammars with libFuzzer. This
currently only works on Linux because of linking issues on macOS. Breifly, the
AddressSanitizer library is dynamically linked into the fuzzer binary and
cannot be found at runtime if built with a compiler that wasn't provided by
Xcode(?). The runtime library is statically linked on Linux so this isn't a
problem.
2017-07-14 13:50:41 -07:00
Max Brunsfeld
dc2035c262
Clean up gitignore
2017-03-09 20:49:11 -08:00
Max Brunsfeld
6dc0ff359d
Rename spec -> test
...
'Test' is a lot more straightforward of a name.
2017-03-09 20:40:01 -08:00
Max Brunsfeld
e1a3a1daeb
Import error corpus entries from grammar repos
...
Now that error recovery requires no input for the grammar author, it shouldn't
be tested in the individual grammar repos.
2016-05-28 20:12:02 -07:00
Max Brunsfeld
0f7dbea9a3
Unify test targets, use externally defined languages as fixtures
2016-01-15 11:19:24 -08:00
Max Brunsfeld
6769659f59
Add vim YCM config file
2014-06-23 12:47:12 -07:00
Max Brunsfeld
e8760eee34
Don't check in cpplint
2014-05-09 16:32:57 -07:00
Max Brunsfeld
67e008d15d
Generate makefile with gyp
...
- Add gyp submodule
- Add script to generate makefile with gyp
- Switch travis build to do this
2014-03-03 13:20:44 -08:00
Max Brunsfeld
86cc854c54
Add gyp file, generate xcode project with it
2014-03-02 23:09:25 -08:00
Max Brunsfeld
9441a21558
Rename project files
2014-01-02 13:09:15 -08:00
Max Brunsfeld
11e3980319
Add helper functions for making shared pointers to rules
...
- start work on item set class
2013-11-10 14:59:40 -08:00
Max Brunsfeld
84c5bceb81
Initial commit
2013-11-05 22:15:19 -08:00