5 unstable releases

0.3.0 Oct 17, 2025
0.2.0 Jan 2, 2025
0.1.2 Oct 12, 2022
0.1.1 Jul 7, 2022
0.1.0 Dec 29, 2021

#546 in Text editors

Download history 4/week @ 2025-07-11 9/week @ 2025-07-18 45/week @ 2025-07-25 46/week @ 2025-08-01 54/week @ 2025-08-08 52/week @ 2025-08-15 38/week @ 2025-08-22 35/week @ 2025-08-29 50/week @ 2025-09-05 53/week @ 2025-09-12 59/week @ 2025-09-19 49/week @ 2025-09-26 1/week @ 2025-10-10 686/week @ 2025-10-17 258/week @ 2025-10-24

945 downloads per month

MIT license

10MB
316K SLoC

C 316K SLoC JavaScript 312 SLoC // 0.1% comments Scheme 47 SLoC // 0.1% comments Rust 36 SLoC // 0.1% comments

tree-sitter-qmljs

QML grammar for the tree-sitter parsing library.

References

Pitfalls

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" }
}

Building

Use the master branch, which contains all generated files.

$ git checkout master
$ npm install
$ cargo build --release

Hacking

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

Dependencies