Commit graph

4624 commits

Author SHA1 Message Date
Max Brunsfeld
68ba9a4d66 Grow memory dynamically as-needed when loading wasm language modules 2023-12-03 12:12:47 -08:00
Max Brunsfeld
f2285b43ea Fix crash when failing to instantiate wasm stdlib module 2023-12-03 11:42:03 -08:00
Max Brunsfeld
b5f461a69b
Merge pull request #2802 from tree-sitter/another-subtree-compare-fix
Fix another bug in subtree_compare
2023-11-30 11:34:24 -08:00
Max Brunsfeld
09b522ece2 Fix another bug in subtree_compare
When subtrees differ, exit loop before pushing children to the stack.
2023-11-30 11:10:33 -08:00
Andrew Hlynskyi
24e62e5c79
Merge pull request #2798 from tree-sitter/revert-2482-alt-2454
Revert "Alt #2454"
2023-11-29 12:59:59 +02:00
Andrew Hlynskyi
d56b51a11d
Revert "Alt #2454" 2023-11-29 11:20:05 +02:00
Andrew Hlynskyi
8456f7eb7a
Merge pull request #2791 from ahlinc/default-release-profile
Keep default release profile with default settings
2023-11-29 05:26:12 +02:00
Max Brunsfeld
034f0d0280
Merge pull request #1864 from tree-sitter/wasm-language
Add optional WASM feature to the native library, allowing it to run wasm-compiled parsers via wasmtime
2023-11-28 12:08:47 -08:00
Andrew Hlynskyi
a2a29231f1 Keep default release profile with default settings 2023-11-28 05:14:36 +02:00
Max Brunsfeld
13dd76e444 Return an informative error on failing to construct a WasmStore 2023-11-27 17:48:29 -08:00
Andrew Hlynskyi
016d8c2499
Merge pull request #2789 from tree-sitter/revert-2602-lib-fix-naming
Revert "chore(lib): fix fields naming in `QueryPattern` to singular"
2023-11-28 03:37:28 +02:00
Andrew Hlynskyi
0d26309c41
Revert "chore(lib): fix fields naming in QueryPattern to singular" 2023-11-28 02:30:01 +02:00
Max Brunsfeld
3b0159d255
Merge pull request #2788 from tree-sitter/subtree-compare-stack-overflow
Avoid using recursion in `subtree_compare`
2023-11-27 13:11:10 -08:00
Max Brunsfeld
5e2456c2f2 Avoid using recursion for ts_subtree_compare
This can lead to stack overflow crashes.
2023-11-27 11:35:33 -08:00
Max Brunsfeld
ac29eab5f9 Remove tests for LookaheadIterator compilation failures
These add noise when running tests. Let's not add unit tests for
compilation failurs.
2023-11-27 10:32:25 -08:00
Max Brunsfeld
6fd7a1e44e Return informative error when load_language fails 2023-11-26 12:15:05 -08:00
Max Brunsfeld
e9289d3b30 Fix error when wrong language name is passed to load_language 2023-11-24 20:25:28 -08:00
Max Brunsfeld
bd0796d11d Remove mips targets from CI workflow 2023-11-24 20:06:36 -08:00
Max Brunsfeld
b59716600a Add a test that loads multiple languages in a wasm store 2023-11-24 20:03:54 -08:00
Max Brunsfeld
359317f876 Determine sizes of static wasm arrays from subsequent static pointers 2023-11-24 11:32:24 -08:00
Max Brunsfeld
97800e0ec8 Advance wasm store's mem + table offsets when adding a language 2023-11-19 12:26:59 -08:00
Amaan Qureshi
0ff28346be
Merge pull request #2714 from MrPrezident/test_point_range_captures_fix
fix "test_point_range_captures not working"
2023-11-12 21:09:09 -08:00
MrPrezident
3c4957e940 fix "test_point_range_captures not working"
Fix for https://github.com/tree-sitter/py-tree-sitter/issues/105
2023-11-12 20:58:51 -06:00
Amaan Qureshi
6019b7c84c
chore: add FUNDING.json 2023-11-08 00:08:07 -05:00
Max Brunsfeld
d3c84e5bd3
Merge pull request #2751 from stackmystack/doc-correction
doc: fix multi-language program typo
2023-11-06 10:43:08 -08:00
Firas al-Khalil
665da5e230 doc: fix multi-language program typo 2023-11-06 13:18:09 +01:00
Max Brunsfeld
360059eca1 Avoid a '../' #include in test scanner 2023-11-04 12:26:00 -07:00
Max Brunsfeld
d56d1a32ac Fix test grammar loading in unit test 2023-11-04 12:26:00 -07:00
Max Brunsfeld
098969db08 Fix windows compile errors in wasm.c 2023-11-04 12:26:00 -07:00
Max Brunsfeld
adb0e6958e Only enable wasm feature on CI for supported architectures 2023-10-31 17:13:50 -07:00
Max Brunsfeld
473b3c8208 Add a CLI feature flag for wasm runtime support 2023-10-31 16:56:11 -07:00
Max Brunsfeld
3380e0eed7 Fix hang when printing dot graphs from the CLI 2023-10-31 15:59:37 -07:00
Max Brunsfeld
b26eff13e2 Remove code duplication in wasm module instantiation, add stdlib symbols 2023-10-31 15:58:56 -07:00
Max Brunsfeld
0743edd162 Include two more std::string functions in wasm stdlib 2023-10-27 21:54:23 +01:00
Max Brunsfeld
2c0b52eec6 Add a comment about how wasmtime-c-api is linked by cargo 2023-10-27 21:53:31 +01:00
Max Brunsfeld
7715e2477a Use Box::leak when passing wasm engine to C code 2023-10-27 21:32:28 +01:00
Max Brunsfeld
b23ef57259 Update wasmtime headers, use latest wasmtime C APIs 2023-10-27 21:30:13 +01:00
Max Brunsfeld
ae2f60d907 Fix loading of wasm languages with fields but no aliases 2023-10-27 21:29:23 +01:00
Max Brunsfeld
091652721e Use upstream wasmtime 2023-10-27 12:43:16 +01:00
Max Brunsfeld
81a1a1733d Fix C compile warnings in wasm.c 2023-10-27 12:16:05 +01:00
Max Brunsfeld
f4e2f68f14 Merge branch 'master' into wasm-language 2023-10-27 12:11:43 +01:00
Max Brunsfeld
ddfbbb00a1
Merge pull request #2725 from daumantas-kavolis-sensmetry/fix/cursor-previous-sibling
Fix `goto_previous_sibling` with padded first children
2023-10-27 11:53:16 +02:00
Daumantas Kavolis
143ed959c9
Use single if block 2023-10-25 10:47:55 +03:00
Daumantas Kavolis
e26e23fd0e
Fix formatting 2023-10-25 10:24:35 +03:00
Daumantas Kavolis
e265929f90
Fix goto_previous_sibling with padded first children 2023-10-25 10:19:03 +03:00
Andrew Hlynskyi
7c0cee70f5
Merge pull request #2713 from tree-sitter/workaround-2712
cicd: disable failed `linux-riscv64gc` target
2023-10-16 23:38:35 +03:00
Andrew Hlynskyi
5e62120050 chore: fix local fixture test for C language 2023-10-16 21:45:40 +03:00
Andrew Hlynskyi
a91a6cc615 cicd: disable failed linux-riscv64gc target
Related issue #2712
2023-10-16 16:13:40 +03:00
Andrew Hlynskyi
20924fa4cd
Merge pull request #2687 from ahlinc/offset-pos-opt
chore(rust): improve perf for position funcs
2023-10-05 20:46:04 +03:00
Andrew Hlynskyi
a5a7564818 chore(rust): add error reporting for position funcs 2023-10-05 17:24:01 +03:00