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
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 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
class := TestCase. | |
aStream := String new writeStream . | |
class superclass == nil | |
ifTrue: [aStream nextPutAll: 'ProtoObject'] | |
ifFalse: [aStream nextPutAll: class superclass name]. | |
aStream | |
nextPutAll: class kindOfSubclass; | |
store: class name; | |
crlf. |
NewerOlder