9 breaking releases

0.10.0 Oct 22, 2024
0.8.0 Sep 16, 2024
0.6.0 Jul 17, 2024
0.2.0 Dec 17, 2023
0.1.0 Nov 22, 2023

#251 in Biology

Download history 136/week @ 2024-08-19 75/week @ 2024-08-26 63/week @ 2024-09-02 19/week @ 2024-09-09 247/week @ 2024-09-16 59/week @ 2024-09-23 52/week @ 2024-09-30 21/week @ 2024-10-07 326/week @ 2024-10-14 296/week @ 2024-10-21 45/week @ 2024-10-28 27/week @ 2024-11-04 162/week @ 2024-11-11 89/week @ 2024-11-18 108/week @ 2024-11-25 24/week @ 2024-12-02

384 downloads per month
Used in 8 crates (2 directly)

MIT/Apache

235KB
5.5K SLoC

Lexing and parsing for Workflow Description Language (WDL) documents.

This crate implements an infallible WDL parser based on the logos crate for lexing and the rowan crate for concrete syntax tree (CST) representation.

The parser outputs a list of parser events that can be used to construct the CST; the parser also keeps a list of [Diagnostic]s emitted during the parse that relate to spans from the original source.

See SyntaxTree::parse for parsing WDL source; users may inspect the resulting CST to determine the version of the document that was parsed.

Examples

An example of parsing WDL source into a CST and printing the tree:

use wdl_grammar::SyntaxTree;

let (tree, diagnostics) = SyntaxTree::parse("version 1.1");
assert!(diagnostics.is_empty());
println!("{tree:#?}");

Dependencies

~3–10MB
~78K SLoC