Skip to content
/ wdl-rs Public

Rust parser for Workflow Description Language (WDL)

License

Notifications You must be signed in to change notification settings

jdidion/wdl-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WDL for Rust

Rust library for Workflow Description Language (WDL).

Currently, there is an #AST and parsers based on both #tree-sitter and #pest. There are plans to add a type-checker and expression evaluator.

Example

use std::path::Path;
use wdl::{ast::VersionIdentifier, ast::DocumentElement, parsers::pest::PestParser};

fn main() {
    let wdl_path = Path::new("/path/to/workflow.wdl");
    let doc = PestParser::parse_file(wdl_path)?;
    assert_eq!(doc.version.identifier, VersionIdentifier::V1_1);
    for element in doc.body {
        match *element {
            DocumentElement::Import(i) => ...,
        }
    }
}

About

Rust parser for Workflow Description Language (WDL)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published