-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds
wdl-grammar gauntlet
for testing grammar parsing
- Loading branch information
1 parent
b713131
commit 0835ceb
Showing
34 changed files
with
4,811 additions
and
874 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
version = "v1" | ||
|
||
[[repositories]] | ||
organization = "PacificBiosciences" | ||
name = "HiFi-human-WGS-WDL" | ||
|
||
[[repositories]] | ||
organization = "biowdl" | ||
name = "tasks" | ||
|
||
[[repositories]] | ||
organization = "stjudecloud" | ||
name = "workflows" | ||
|
||
[[repositories]] | ||
organization = "chanzuckerberg" | ||
name = "czid-workflows" | ||
|
||
[[ignored_errors]] | ||
document = "biowdl/tasks:bedtools.wdl" | ||
error = """ | ||
--> 29:67 | ||
| | ||
29 | String memory = \"~{512 + ceil(size([inputBed, faidx], \"MiB\"))}MiB\" | ||
| ^--- | ||
| | ||
= expected WHITESPACE or OPTION""" | ||
|
||
[[ignored_errors]] | ||
document = "biowdl/tasks:bowtie.wdl" | ||
error = """ | ||
--> 40:58 | ||
| | ||
40 | String memory = \"~{5 + ceil(size(indexFiles, \"GiB\"))}GiB\" | ||
| ^--- | ||
| | ||
= expected WHITESPACE or OPTION""" | ||
|
||
[[ignored_errors]] | ||
document = "stjudecloud/workflows:template/task-templates.wdl" | ||
error = """ | ||
--> 17:25 | ||
| | ||
17 | Int memory_gb = <> | ||
| ^--- | ||
| | ||
= expected WHITESPACE, COMMENT, or expression""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
//! A crate for lexing and parsing the Workflow Description Language | ||
//! (WDL) using [`pest`](https://pest.rs). | ||
#![feature(let_chains)] | ||
#![warn(rust_2018_idioms)] | ||
#![warn(rust_2021_compatibility)] | ||
#![warn(missing_debug_implementations)] | ||
#![deny(rustdoc::broken_intra_doc_links)] | ||
|
||
#[cfg(feature = "binaries")] | ||
use clap::ValueEnum; | ||
use serde::Deserialize; | ||
use serde::Serialize; | ||
|
||
pub mod v1; | ||
|
||
#[derive(Clone, Debug, Default, Serialize, ValueEnum)] | ||
#[derive(Clone, Debug, Default, Deserialize, Serialize)] | ||
#[cfg_attr(feature = "binaries", derive(ValueEnum))] | ||
#[serde(rename_all = "lowercase")] | ||
pub enum Version { | ||
/// Version 1.x of the WDL specification. | ||
#[default] | ||
V1, | ||
} | ||
|
||
impl std::fmt::Display for Version { | ||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||
match self { | ||
Version::V1 => write!(f, "WDL v1.x"), | ||
} | ||
} | ||
} |
Oops, something went wrong.