-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
121 additions
and
23 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
-- main.alloy -- | ||
foreach "testForeach" { | ||
collection = [1, 2, 3, 4] | ||
//var = "num" | ||
|
||
// Similar to testcomponents.summation, but with a "forward_to" | ||
testcomponents.summation1 "sum" { | ||
//TODO: Use the num variable here | ||
// input = num | ||
input = 1 | ||
forward_to = testcomponents.summation2.final.receiver | ||
template { | ||
// Similar to testcomponents.summation, but with a "forward_to" | ||
testcomponents.summation1 "sum" { | ||
//TODO: Use the num variable here | ||
// input = num | ||
input = 1 | ||
forward_to = [testcomponents.summation2.final.receiver] | ||
} | ||
} | ||
} | ||
|
||
// Similar to testcomponents.summation, but with a "receiver" export | ||
testcomponents.summation2 "final" { | ||
} | ||
} |