5 ms·
I’ve been using tree-sitter via FFI from Common Lisp, but what I’d really like would be a way to write my own code generator so that the generated parser could
by fiddlerwoaroof 6y ago
I’ve been using tree-sitter via FFI from Common Lisp, but what I’d really like would be a way to write my own code generator so that the generated parser could be “native” lisp code. Otherwise, it’s an amazing tool: my only other complaint would be the lack of a grammar for objective-c which would be useful for a lisp/objective-c bridge I’ve been working on.
- maxbrunsfeld 6y agoI think that it'd be pretty easy to generate parser code in other languages besides C, but it would be a lot of work to do to port the core library itself[1] to those other languages. [1] https://github.com/tree-sitter/tree-sitter/tree/master/lib/src https://github.com/tree-sitter/tree-sitter/tree/master/lib/s... I agree about the Objective-C grammar! Although it looks like somebody's started work on it: https://github.com/merico-dev/tree-sitter-objc https://github.com/merico-dev/tree-sitter-objc