GithubHelp home page GithubHelp logo

Support nostd about tree-sitter HOT 5 OPEN

cathaysia avatar cathaysia commented on July 1, 2024
Support nostd

from tree-sitter.

Comments (5)

amaanq avatar amaanq commented on July 1, 2024

no_std where? the lib? the cli? and why, what's the use case/benefit exactly?

from tree-sitter.

cathaysia avatar cathaysia commented on July 1, 2024

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.

cathaysia avatar cathaysia commented on July 1, 2024

In fact, the main blocker for no_std is the regex library referenced by the tree-sitter query.

from tree-sitter.

ObserverOfTime avatar ObserverOfTime commented on July 1, 2024

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.

cathaysia avatar cathaysia commented on July 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.