Skip to content

Commit

Permalink
feat: implement the standard library numeric functions. (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhuene authored Nov 12, 2024
1 parent ddf3c07 commit 4d16b8b
Show file tree
Hide file tree
Showing 18 changed files with 1,996 additions and 3,439 deletions.
3,063 changes: 399 additions & 2,664 deletions Arena.toml

Large diffs are not rendered by default.

906 changes: 428 additions & 478 deletions Gauntlet.toml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions wdl-analysis/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

* Refactored function call binding information to aid with call evaluation in
`wdl-engine` ([#251](https://github.com/stjude-rust-labs/wdl/pull/251)).
* Made diagnostic creation functions public ([#249](https://github.com/stjude-rust-labs/wdl/pull/249)).
* Refactored expression type evaluator to provide context via a trait ([#249](https://github.com/stjude-rust-labs/wdl/pull/249)).
* Removed `PartialEq`, `Eq`, and `Hash` from WDL-type-related types ([#249](https://github.com/stjude-rust-labs/wdl/pull/249)).
Expand Down
2 changes: 1 addition & 1 deletion wdl-analysis/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ pub fn unknown_function(name: &str, span: Span) -> Diagnostic {
/// Creates an "unsupported function" diagnostic.
pub fn unsupported_function(minimum: SupportedVersion, name: &str, span: Span) -> Diagnostic {
Diagnostic::error(format!(
"function `{name}` requires a minimum WDL version of {minimum}"
"this use of function `{name}` requires a minimum WDL version of {minimum}"
))
.with_highlight(span)
}
Expand Down
Loading

0 comments on commit 4d16b8b

Please sign in to comment.