-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) Support Preserving Variable Values (#115)
Updates the variable assignment command to support preserving the value of a variable if one is already declared. The new syntax adds an optional `?` preceding the `=` to indicate that the assignment should only occur if the variable does not have a value.
- Loading branch information
1 parent
e377980
commit 05455df
Showing
8 changed files
with
164 additions
and
32 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
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,33 @@ | ||
drink: | ||
beverage: | ||
- '${season?=!{winter|summer}} ${temp?=!{hot|cold}} ${location?=!{north|south}} a __drink/container/${temp}__ of __drink/temp/${temp}__ __drink/${season}/${location}__' | ||
winter: | ||
beverage: | ||
- '${temp=hot} ${season=winter} ${location?=north} __drink/beverage__' | ||
|
||
north: | ||
- tea | ||
south: | ||
- coffee | ||
|
||
summer: | ||
beverage: | ||
- '${temp=cold} ${season=summer} ${location?=south} __drink/beverage__' | ||
north: | ||
- tea | ||
- pop | ||
south: | ||
- sweet tea | ||
- soda | ||
|
||
container: | ||
hot: | ||
- mug | ||
cold: | ||
- glass | ||
|
||
temp: | ||
hot: | ||
- hot | ||
cold: | ||
- iced |
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