Ported from Go implementations
bzl_library
Here is a simple real-world example. Here we have ported thebzl_library generator from the Go code in bazel-skylib.
To query the Starlark language and gather all load statements, we use this Tree-sitter query:
Kotlin
As another example, we’ve ported the Kotlin Go implementation to Starlark: kotlin.star.From scratch
PostCSS
A third-party OSS example: postcss.star.C++
This rudimentary rules_cc.axl extension demonstrates the value of being able to hard-code some dependencies like@sqlite3. It’s not generalized enough to publish as a generic OSS extension, but it’s much quicker to iterate on and solves basic cases.
