Created
July 18, 2017 19:30
-
-
Save GeePawHill/5405bd8e3ae4c500596f0e811f9176ee to your computer and use it in GitHub Desktop.
pipedream fluency?
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
assume() starts the context for setting defaults, so assume().format(...) sets a default format | |
mark(ms) starts the script step context, saying, at time ms, do the action | |
then() just continues the previous mark | |
head() is a custom action, not a built-in, it clears the existing column and puts a headline up. | |
sketch() is a built-in, it will cause the following actor to be sketched. | |
letters() is a custom object(), creating a text and modifying it. | |
group(), name(), at() and format() are all built-ins, all objects support them. | |
private Step stack2() | |
{ | |
assume().format("largeCodeFormat"); | |
mark(0).head("A Program's Stack"); | |
then().drawStack(); | |
mark(22).head("The Household Progam"); | |
mark(26).sketch().letters("main()").group("stack").at(stackTextPosition(0)); | |
mark(30).sketch().letters("doChores()").group("catchAndThrow").at(stackTextPosition(1)); | |
mark(33).sketch().letters("takeOutTrash()").group("stack").at(stackTextPosition(2)); | |
mark(37).sketch().letters("putBagsInCans()").group("stack").at(stackTextPosition(3)); | |
mark(40).sketch().letters("putOneBagInCan()").group("stack").at(stackTextPosition(4)); | |
mark(44).sketch().letters("openCan()").group("catchAndThrow").at(stackTextPosition(5)); | |
then().sketch().letters("whoops, he forgot openCan()").named("joke").at(jokePosition()); | |
mark(49).fadeOut().the("joke"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment