Comments (5)
no_std where? the lib? the cli? and why, what's the use case/benefit exactly?
from tree-sitter.
no_std for the tree-sitter rust lib. This makes no_std environment can using tree-sitter parse text.
I use tree-sitter to parse grammar in my recent project. But my project runs on bare metal, if tree-sitter (rust) supports no_std, then tree-sitter can run in a wider range of environments.
Currently in my private fork, I have successfully compiled the into the no_std environment after make query-related code as a feature. So I think this work should be relatively simple.
from tree-sitter.
In fact, the main blocker for no_std is the regex library referenced by the tree-sitter query.
from tree-sitter.
PR welcome if you make nostd an optional feature instead of the other way around.
You likely just need to disable the #match?
predicates, rather than the entire query code.
from tree-sitter.
I don't quite understand the difference between them. But I'll open a simple PR later to describe my thoughts. Please and welcome to comment it. :)
from tree-sitter.
Related Issues (20)
- error[E0463]: can't find crate for `thiserror_impl` HOT 6
- `ts_node_field_name_for_child()` can incorrectly assign field names to `extras` HOT 1
- Alias not queriable HOT 3
- `ts_node_is_missing()` fails if missing node wraps hidden rules
- ts_highlighter_add_language CAPI and Rust Implementation signature mismatch HOT 1
- `setTimeoutMicros` doesn't appear to work in the latest versions of `web-tree-sitter` HOT 2
- Rust bindings build script accesses `CARGO_MANIFEST_DIR` at compile time instead of run time
- fails to compile with ld from msys2/mingw with `features = ["wasm"]` HOT 1
- Split tree_sitter_cli::generate off into its own crate
- Segfault when using hardened memory allocator HOT 2
- Support negative/error syntax corpus tests HOT 3
- rust api: recursivly print tree via Debug trait if alternate flag is set HOT 7
- zig no longer works for builds in main branch of nvim-treesitter HOT 2
- Playground in offline mode HOT 4
- Don't minify tree-sitter.js HOT 1
- Swift package template dependencies HOT 4
- Assertion Failed on Terraform Files HOT 2
- "Undefined symbol" exception does not say the name of the symbol HOT 1
- `ts_node_descendant_for_point_range()` and `ts_node_descendant_for_byte_range()` with misspecified ranges
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tree-sitter.