-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Janet Gainer-Dewar <[email protected]>
- Loading branch information
1 parent
027de62
commit 2f8c46d
Showing
42 changed files
with
2,666 additions
and
1,938 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
centaur/src/main/resources/standardTestCases/struct_literal.test
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,12 @@ | ||
name: struct_literal | ||
testFormat: workflowsuccess | ||
|
||
files { | ||
workflow: struct_literal/struct_literal.wdl | ||
} | ||
|
||
metadata { | ||
workflowName: struct_literal | ||
status: Succeeded | ||
"outputs.struct_literal.out": 44 | ||
} |
68 changes: 68 additions & 0 deletions
68
centaur/src/main/resources/standardTestCases/struct_literal/struct_literal.wdl
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,68 @@ | ||
version development-1.1 | ||
|
||
struct Plant { | ||
String color | ||
Int id | ||
} | ||
|
||
struct Fungi { | ||
File fungiFile | ||
} | ||
|
||
|
||
struct Animal { | ||
Plant jacket | ||
Fungi hat | ||
} | ||
|
||
task a { | ||
input { | ||
Plant in_plant_literal = Plant{color: "red", id: 44} | ||
} | ||
|
||
command { | ||
echo "${in_plant_literal.id}" | ||
} | ||
|
||
output { | ||
Animal out_animal = Animal{jacket: Plant{color: "green", id: 10}, hat: Fungi{fungiFile: stdout()}} | ||
} | ||
|
||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
|
||
meta { | ||
volatile: true | ||
} | ||
} | ||
|
||
task b { | ||
input { | ||
Animal in_animal | ||
} | ||
|
||
command { | ||
cat ${in_animal.hat.fungiFile} | ||
} | ||
|
||
output { | ||
Int out = read_int(stdout()) | ||
} | ||
|
||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
|
||
meta { | ||
volatile: true | ||
} | ||
} | ||
|
||
workflow struct_literal { | ||
call a | ||
call b {input: in_animal=a.out_animal} | ||
output { | ||
Int out = b.out | ||
} | ||
} |
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
1,944 changes: 983 additions & 961 deletions
1,944
wdl/transforms/biscayne/src/main/java/wdl/biscayne/parser/WdlParser.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
2023-03-16 | ||
Synced grammar from OpenWDL `development` version, which is actually development of 2.0. There is no 1.1 Hermes grammar, develop it here. | ||
Changed version declaration to `development1_1`. | ||
This disallows `version 1.1` workflows to run with incomplete support. Once development is finished, change to `1.1`. | ||
This disallows `version 1.1` workflows to run with incomplete support. Once development is finished, change to `1.1`. | ||
|
||
2024-02-28 | ||
When changing the grammar file, generate a new parser by: | ||
- changing current working directory to cromwell/wdl/transforms/biscayne | ||
- running: hermes generate src/main/resources/grammar.hgr \ | ||
--language=java \ | ||
--directory=src/main/java \ | ||
--name=wdl \ | ||
--java-package=wdl.biscayne.parser \ | ||
--java-use-apache-commons --java-imports=org.apache.commons.lang3.StringEscapeUtils \ | ||
--header |
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 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 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 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 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,39 @@ | ||
version development-1.1 | ||
|
||
struct Plant { | ||
String color | ||
Boolean tasty | ||
} | ||
|
||
struct Animal { | ||
String name | ||
Boolean? isGood | ||
} | ||
|
||
task test_struct_parsing { | ||
input { | ||
Plant standard_plant_input | ||
Animal standard_animal_input | ||
} | ||
|
||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
|
||
command { | ||
echo "all dogs are good" | ||
} | ||
|
||
output { | ||
Plant standard_plant_forwarded = standard_plant_input | ||
Animal standard_animal_forwarded = standard_animal_input | ||
Plant plant_output_literal = Plant{color: "red", tasty: true} | ||
} | ||
} | ||
|
||
workflow struct_literal { | ||
call test_struct_parsing { | ||
input: standard_plant_input = Plant{color: "green", tasty: true}, | ||
standard_animal_input = Animal{name: "mittens", isGood: false} | ||
} | ||
} |
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
Oops, something went wrong.