[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tree-sitter introduction documentation
From: |
Lynn Winebarger |
Subject: |
Re: Tree-sitter introduction documentation |
Date: |
Thu, 29 Dec 2022 10:40:44 -0500 |
On Thu, Dec 29, 2022 at 10:28 AM Gregory Heytings <gregory@heytings.org> wrote:
> > Do you know how strong the dependency on node is? As I said before, it
> > seems that it is possible to evaluate the grammar files that use the DSL
> > using something like quickjs as well
> >
>
> That's not possible, no, at least not without a lot of complications that
> do not seem worth the price, compared to installing Node.js. And note
> that even if that were feasible, it would only solve the first half of the
> problem: to transform a grammar.js file into its corresponding parser.c
> file, you also need the tree-sitter command line program.
Maybe a better question is - is it possible to adapt the semantic
parser generators (or others in emacs) to create the ".c" files for
use with libtreesitter?
The functionality of libtreesitter is probably useful independent of
the tool used to create the module it loads, as long as it satisfies
the functional requirements. Would the treesitter authors be amenable
to establishing a documented ABI for that component so other
parser-generators could target it?
Lynn
- Re: Tree-sitter introduction documentation, (continued)
- Re: Tree-sitter introduction documentation, Eli Zaretskii, 2022/12/27
- Re: Tree-sitter introduction documentation, Stefan Monnier, 2022/12/27
- Re: Tree-sitter introduction documentation, Philip Kaludercic, 2022/12/27
- Re: Tree-sitter introduction documentation, Stefan Monnier, 2022/12/27
- Re: Tree-sitter introduction documentation, Yuan Fu, 2022/12/27
- Re: Tree-sitter introduction documentation, Gregory Heytings, 2022/12/28
- Re: Tree-sitter introduction documentation, Lynn Winebarger, 2022/12/28
- Re: Tree-sitter introduction documentation, Danny Freeman, 2022/12/28
- Re: Tree-sitter introduction documentation, Philip Kaludercic, 2022/12/29
- Re: Tree-sitter introduction documentation, Gregory Heytings, 2022/12/29
- Re: Tree-sitter introduction documentation,
Lynn Winebarger <=
- Re: [SPAM UNSURE] Re: Tree-sitter introduction documentation, Stephen Leake, 2022/12/29
- Re: [SPAM UNSURE] Re: Tree-sitter introduction documentation, Lynn Winebarger, 2022/12/29
- Re: [SPAM UNSURE] Re: Tree-sitter introduction documentation, Lynn Winebarger, 2022/12/30
- Targeting libtreesitter from wisent and other parser generators for emacs, Lynn Winebarger, 2022/12/30
- Re: Targeting libtreesitter from wisent and other parser generators for emacs, Eli Zaretskii, 2022/12/31
- Re: Targeting libtreesitter from wisent and other parser generators for emacs, Lynn Winebarger, 2022/12/31
- Re: Tree-sitter introduction documentation, Philip Kaludercic, 2022/12/29
- Re: Tree-sitter introduction documentation, Gregory Heytings, 2022/12/29
- Re: Tree-sitter introduction documentation, Philip Kaludercic, 2022/12/29
- Re: Tree-sitter introduction documentation, Gregory Heytings, 2022/12/29