Code Monkey home page Code Monkey logo

Comments (6)

Julian avatar Julian commented on September 23, 2024 2

Hey! The parser is already extracted here -- but ran into quite crippling tree-sitter issues with the size of the grammar. The queries that are in this repo could indeed be upstreamed, but I'm not really working on tree-sitter related support anymore until/unless the issues with tree-sitter-lean are resolved. We anyways have semantic highlighting now in Lean's LSP, so there's slightly less of an incentive.

from lean.nvim.

Julian avatar Julian commented on September 23, 2024 2

The relevant (or at least what I recall was seemingly relevant sounding to me) upstream issue is tree-sitter/tree-sitter#693 (or tree-sitter/tree-sitter#1041)

from lean.nvim.

Julian avatar Julian commented on September 23, 2024 1

Essentially simply try to build the repo using tree-sitter generate -- two things will happen -- it will take ages, and then also will produce a giant parser (.c file -- one that actually exceeds the GitHub size limits now for committing a file to a repository).

from lean.nvim.

clason avatar clason commented on September 23, 2024 1

This is off-topic, I know, but there are ways of keeping the parser size in check by being smarter about writing the grammar (which is an art, not a science). Some tips can be found here: https://github.com/tree-sitter/tree-sitter/wiki/Tips-and-Tricks-for-a-grammar-author

from lean.nvim.

llllvvuu avatar llllvvuu commented on September 23, 2024

Is there a repro of the tree-sitter-lean issues?

from lean.nvim.

Julian avatar Julian commented on September 23, 2024

(I'm going to close this I think since I'm not sure there's anything to do in this repo specifically, but I'd be very glad for help if anyone is interested in it -- feel free to send whatever advice, PRs, or issues to the tree-sitter-lean repo!)

from lean.nvim.

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.