| Crates.io | tree-sitter-qmljs |
| lib.rs | tree-sitter-qmljs |
| version | 0.2.0 |
| created_at | 2021-12-29 02:24:32.473994+00 |
| updated_at | 2025-01-02 03:46:57.274527+00 |
| description | QML grammar for the tree-sitter parsing library |
| homepage | |
| repository | https://github.com/yuja/tree-sitter-qmljs |
| max_upload_size | |
| id | 504570 |
| size | 10,235,825 |
QML grammar for the tree-sitter parsing library.
Since grouped binding notation is syntactically ambiguous, it is parsed as an object definition.
// (ui_object_definition type_name: (identifier "Button") ...)
Button {
// (ui_object_definition type_name: (identifier "icon") ...)
icon { source: "foo.png"; color: "transparent" }
}
Use the master branch, which contains all generated files.
$ git checkout master
$ npm install
$ cargo build --release
Use the dev branch, but you'll first need to run npm install in the
master branch.
$ git checkout master
$ npm install
$ git checkout dev
Generate code and run tests:
$ make generate tests
Make sure example QML files can be parsed:
$ make fetch-examples parse-examples