Created
October 31, 2010 01:52
-
-
Save briantrice/656005 to your computer and use it in GitHub Desktop.
Implementation
This file contains hidden or 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
n@(Syntax Partial traits) er &environment: env | |
[| block message | | |
block: n surroundings Block new. | |
message: n message copy. | |
message arguments infect: | |
[| :arg | | |
(arg is: n surroundings Placeholder) | |
ifTrue: [n surroundings LoadVariable from: block addInputVariable] | |
ifFalse: [arg]]. | |
block statements: {message}. | |
block | |
]. |
This file contains hidden or 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
slate[4]> #(3 + _) `er applyTo: {4}. | |
7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment