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
OSProcess thisOSProcess stdOut | |
nextPutAll: 'Welcome to the simple Smalltalk REPL'; | |
nextPut: Character lf; nextPut: $>; flush. | |
[ |input| | |
[ input := OSProcess readFromStdIn. | |
input size > 0 ifTrue: [ | |
OSProcess thisOSProcess stdOut | |
nextPutAll: ((Compiler evaluate: input) asString; | |
nextPut: Character lf; nextPut: $>; flush | |
] |
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
SystemWindow allInstancesDo:[:win| win setLabel: (win labelString reverse)] |
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
SHWorkspace allInstances first codeTextMorph textMorph selection asString |
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
| scriptMethod sourceString sourceStringWithBracketsStripped | | |
scriptMethod := CLASS_HERE compiledMethodAt: #METHOD_HERE. | |
sourceString := scriptMethod methodNode body asString. | |
sourceStringWithBracketsStripped := sourceString copyFrom: 3 to: sourceString size - 2. | |
sourceStringWithBracketsStripped. |
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
HostWindowProxy new | |
instVarNamed: #windowHandle put: 1; | |
windowPosition: 0 @ 0; | |
windowSize: 800 @ 600; | |
windowTitle: 'Screencast' |
NewerOlder