-
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 8f12e62
Showing
30 changed files
with
4,518 additions
and
844 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
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.