README.md
March 20, 2026 ยท View on GitHub
tree-sitter-wdl
A tree-sitter grammar for WDL.
Overview
This grammar supports WDL versions 1.0 through 1.3, including enum
definitions, env declarations, and else if/else conditional clauses. It
provides syntax highlighting, code folding, and language injection for bash
within command blocks.
Generated files (src/parser.c, src/grammar.json, src/node-types.json) are
checked in so that consumers do not need a Node.js toolchain.
Usage
Build
npm install
npx tree-sitter generate
Test
npx tree-sitter test
Parse a file
npx tree-sitter parse example.wdl
๐ License and Legal
This project is licensed as either Apache 2.0 or MIT at your discretion. Additionally, please see the disclaimer that applies to all crates and command line tools made available by St. Jude Rust Labs.
Copyright ยฉ 2026-Present St. Jude Children's Research Hospital.