tree-sitter-visitor
tree-sitter-php
tree-sitter-visitor | tree-sitter-php | |
---|---|---|
1 | 4 | |
1 | 132 | |
- | 4.5% | |
10.0 | 0.0 | |
over 2 years ago | 9 days ago | |
C | C | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tree-sitter-visitor
-
Show HN: Alumina Programming Language
Honestly, Tree Sitter is fantastic, I can highly recommend it. By far the most user friendly and powerful parser generator I've worked with. The C API is very nice.
The only two pain point I had is that the `node-types.json` that's generated only contains the names of the nodes, not the numerical IDs. This means that if you have some codegen generating Rust enums is difficult if you want to avoid matching nodes by string.
I wrote https://github.com/tibordp/tree-sitter-visitor for generating visitor traits in Rust for a given grammar. I actually did it a bit differently in the end for Alumina, but it might come useful.
tree-sitter-php
- Building tree-sitter languages for Emacs
-
PHP variable highlighting problem
Thank you, but i didn't get what highlights.scm do you mean, it this one https://github.com/tree-sitter/tree-sitter-php/blob/master/queries/highlights.scm It doesn't contain @keyword for "$", only @operator one
- tree-sitter-php: PHP grammar for tree-sitter
- My major-mode for PHP, phps-mode, now has a built-in PHP 8.0 Parser written entirely in Emacs-Lisp
What are some alternatives?
alumina - A general purpose programming language
tree-sitter-c - C grammar for tree-sitter
tree-sitter-zig - Tree-sitter package for the Zig programming language
emacs-phps-mode - Emacs major mode for PHP with code intelligence
tree-sitter-rust - Rust grammar for tree-sitter
tree-sitter-make
tree-sitter-sql - SQL syntax highlighting for tree-sitter
treesit-langs - Language bundle for Emacs's tree-sitter package
tree-sitter-lua - Lua grammar for tree-sitter.
tree-sitter-go - Go grammar for tree-sitter