author | Claus Gittinger <cg@exept.de> |
Tue, 04 Jun 2013 12:30:45 +0200 | |
changeset 15365 | d77ca24522dc |
parent 13866 | c15dce4faf10 |
child 15702 | 01c33c1f4990 |
child 18066 | 89d51443ba6f |
permissions | -rw-r--r-- |
10249 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
10248 | 12 |
"{ Package: 'stx:libbasic' }" |
13 |
||
14 |
Object subclass:#ReadEvalPrintLoop |
|
10254 | 15 |
instanceVariableNames:'inputStream outputStream errorStream compiler prompt |
10628
284266d54dbe
#exit only leaves the rep-loop
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
16 |
doChunkFormat traceFlag timingFlag exitAction' |
10248 | 17 |
classVariableNames:'' |
18 |
poolDictionaries:'' |
|
10277 | 19 |
category:'System-Support' |
10248 | 20 |
! |
21 |
||
10249 | 22 |
!ReadEvalPrintLoop class methodsFor:'documentation'! |
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
27 |
All Rights Reserved |
|
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
10461
0b2935207fec
+correctableError:position:to:
Claus Gittinger <cg@exept.de>
parents:
10277
diff
changeset
|
36 |
! |
0b2935207fec
+correctableError:position:to:
Claus Gittinger <cg@exept.de>
parents:
10277
diff
changeset
|
37 |
|
0b2935207fec
+correctableError:position:to:
Claus Gittinger <cg@exept.de>
parents:
10277
diff
changeset
|
38 |
documentation |
0b2935207fec
+correctableError:position:to:
Claus Gittinger <cg@exept.de>
parents:
10277
diff
changeset
|
39 |
" |
0b2935207fec
+correctableError:position:to:
Claus Gittinger <cg@exept.de>
parents:
10277
diff
changeset
|
40 |
A simple read-eval-print loop for non-GUI or stscript operation. |
10628
284266d54dbe
#exit only leaves the rep-loop
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
41 |
A line starting with '?' shows the usage message. |
284266d54dbe
#exit only leaves the rep-loop
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
42 |
Lines starting with '#' are directives: |
284266d54dbe
#exit only leaves the rep-loop
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
43 |
#exit - exit the rep-loop |
284266d54dbe
#exit only leaves the rep-loop
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
44 |
|
10461
0b2935207fec
+correctableError:position:to:
Claus Gittinger <cg@exept.de>
parents:
10277
diff
changeset
|
45 |
" |
10249 | 46 |
! ! |
10248 | 47 |
|
48 |
!ReadEvalPrintLoop methodsFor:'accessing'! |
|
49 |
||
10463 | 50 |
compiler:something |
51 |
compiler := something. |
|
10248 | 52 |
! |
53 |
||
10632 | 54 |
doChunkFormat |
55 |
^ doChunkFormat ? true |
|
56 |
||
57 |
"Created: / 07-12-2006 / 18:24:04 / cg" |
|
58 |
! |
|
59 |
||
10463 | 60 |
doChunkFormat:something |
10254 | 61 |
doChunkFormat := something. |
62 |
||
63 |
"Created: / 07-12-2006 / 18:24:04 / cg" |
|
10248 | 64 |
! |
65 |
||
66 |
error:something |
|
67 |
errorStream := something. |
|
68 |
||
69 |
"Created: / 07-12-2006 / 17:33:39 / cg" |
|
70 |
! |
|
71 |
||
10463 | 72 |
errorStream |
10256 | 73 |
^ errorStream ? Transcript ? Stderr |
74 |
||
75 |
"Created: / 07-12-2006 / 19:11:56 / cg" |
|
76 |
! |
|
77 |
||
10463 | 78 |
input:something |
10248 | 79 |
inputStream := something. |
80 |
||
81 |
"Modified: / 07-12-2006 / 17:33:31 / cg" |
|
82 |
! |
|
83 |
||
10463 | 84 |
inputStream |
85 |
^ inputStream ? Stdin |
|
86 |
||
87 |
"Created: / 07-12-2006 / 19:12:13 / cg" |
|
10256 | 88 |
! |
89 |
||
10463 | 90 |
output:something |
10248 | 91 |
outputStream := something. |
92 |
||
93 |
"Created: / 07-12-2006 / 17:27:48 / cg" |
|
94 |
! |
|
95 |
||
10463 | 96 |
outputStream |
97 |
^ outputStream ? Stdout |
|
98 |
||
99 |
"Created: / 07-12-2006 / 19:12:27 / cg" |
|
100 |
! |
|
101 |
||
102 |
prompt:something |
|
103 |
prompt := something. |
|
10248 | 104 |
! ! |
105 |
||
10631 | 106 |
!ReadEvalPrintLoop methodsFor:'compiler interface-error handling'! |
107 |
||
108 |
correctableError:message position:pos1 to:pos2 from:aCompiler |
|
109 |
"compiler notifies us of an error - ignore it" |
|
110 |
||
111 |
^ false |
|
112 |
! |
|
113 |
||
114 |
correctableSelectorWarning:aString position:relPos to:relEndPos from:aCompiler |
|
115 |
"compiler notifies us of a warning - ignore it" |
|
116 |
||
117 |
^ false |
|
118 |
! |
|
119 |
||
13121
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
120 |
correctableWarning:message position:pos1 to:pos2 from:aCompiler |
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
121 |
"compiler notifies us of an error - ignore it" |
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
122 |
|
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
123 |
^ false |
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
124 |
|
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
125 |
"Created: / 02-11-2010 / 13:29:22 / cg" |
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
126 |
! |
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
127 |
|
10631 | 128 |
error:aString position:relPos to:relEndPos from:aCompiler |
129 |
"compiler notifies us of a warning - ignore it" |
|
130 |
||
131 |
^ false |
|
132 |
! |
|
133 |
||
134 |
unusedVariableWarning:aString position:relPos to:relEndPos from:aCompiler |
|
135 |
"compiler notifies us of a warning - ignore it" |
|
136 |
||
137 |
^ false |
|
138 |
! |
|
139 |
||
140 |
warning:aString position:relPos to:relEndPos from:aCompiler |
|
141 |
"compiler notifies us of a warning - ignore it" |
|
142 |
||
143 |
^ self |
|
144 |
! ! |
|
145 |
||
10255 | 146 |
!ReadEvalPrintLoop methodsFor:'directives'! |
147 |
||
10463 | 148 |
cmd_clear:lineStream |
10255 | 149 |
self cmd_setOrClear:lineStream to:false |
150 |
||
151 |
"Created: / 07-12-2006 / 19:04:50 / cg" |
|
152 |
! |
|
153 |
||
10463 | 154 |
cmd_exit:lineStream |
10628
284266d54dbe
#exit only leaves the rep-loop
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
155 |
exitAction value |
10463 | 156 |
|
157 |
"Created: / 07-12-2006 / 18:55:46 / cg" |
|
10255 | 158 |
! |
159 |
||
10463 | 160 |
cmd_help:lineStream |
161 |
self errorStream |
|
162 |
nextPutAll: |
|
10635
c3c4fc186068
changed #interpreterLoopWith:
Claus Gittinger <cg@exept.de>
parents:
10632
diff
changeset
|
163 |
'Everything entered up to an empty line is called a "chunk" and evaluated. |
10463 | 164 |
Lines starting with "#" are commands to the read-eval-print interpreter. |
165 |
||
166 |
Valid commands are: |
|
10635
c3c4fc186068
changed #interpreterLoopWith:
Claus Gittinger <cg@exept.de>
parents:
10632
diff
changeset
|
167 |
#help ............... this text |
c3c4fc186068
changed #interpreterLoopWith:
Claus Gittinger <cg@exept.de>
parents:
10632
diff
changeset
|
168 |
#exit ............... exit interpreter loop |
c3c4fc186068
changed #interpreterLoopWith:
Claus Gittinger <cg@exept.de>
parents:
10632
diff
changeset
|
169 |
#use <package>....... use (load) a package |
10463 | 170 |
stx:libwidg ........ GUI package |
171 |
stx:libtool ........ IDE tool package |
|
10635
c3c4fc186068
changed #interpreterLoopWith:
Claus Gittinger <cg@exept.de>
parents:
10632
diff
changeset
|
172 |
#show <what> ........ show info |
10463 | 173 |
variables .......... interpreter variables |
174 |
processes .......... processes |
|
175 |
memory ............. memory usage |
|
176 |
flags .............. flags |
|
13866 | 177 |
modules ............ loaded modules |
10635
c3c4fc186068
changed #interpreterLoopWith:
Claus Gittinger <cg@exept.de>
parents:
10632
diff
changeset
|
178 |
#set/clear <flag> ... set or clear a flag |
10463 | 179 |
trace .............. tracing execution |
180 |
timing ............. timing execution |
|
10257 | 181 |
|
182 |
MiniDebugger shows its help with "?". |
|
10255 | 183 |
' |
184 |
||
185 |
"Created: / 07-12-2006 / 18:54:20 / cg" |
|
186 |
! |
|
187 |
||
10463 | 188 |
cmd_set:lineStream |
10255 | 189 |
self cmd_setOrClear:lineStream to:true |
190 |
||
191 |
"Modified: / 07-12-2006 / 19:04:46 / cg" |
|
192 |
! |
|
193 |
||
10463 | 194 |
cmd_setOrClear:lineStream to:aBoolean |
195 |
|what| |
|
196 |
||
197 |
lineStream skipSeparators. |
|
198 |
what := lineStream nextAlphaNumericWord. |
|
199 |
(what startsWith:'tra') ifTrue:[ |
|
200 |
traceFlag := aBoolean. |
|
201 |
^ self. |
|
202 |
]. |
|
203 |
(what startsWith:'tim') ifTrue:[ |
|
204 |
timingFlag := aBoolean. |
|
205 |
^ self. |
|
206 |
]. |
|
207 |
||
208 |
self errorStream nextPutLine:'?? which flag ?'. |
|
10255 | 209 |
|
10256 | 210 |
"Modified: / 07-12-2006 / 19:13:34 / cg" |
10255 | 211 |
! |
212 |
||
10463 | 213 |
cmd_show:lineStream |
13865 | 214 |
|what all printModule| |
10463 | 215 |
|
13865 | 216 |
" |
217 |
self basicNew cmd_show:'packages' readStream |
|
218 |
" |
|
10463 | 219 |
lineStream skipSeparators. |
220 |
what := lineStream nextAlphaNumericWord. |
|
221 |
(what startsWith:'var') ifTrue:[ |
|
222 |
^ self. |
|
223 |
]. |
|
224 |
(what startsWith:'proc') ifTrue:[ |
|
225 |
MiniDebugger basicNew showProcesses. |
|
226 |
^ self. |
|
227 |
]. |
|
13866 | 228 |
(what startsWith:'mod') ifTrue:[ |
13865 | 229 |
printModule := |
230 |
[:mod | |
|
231 |
self errorStream |
|
232 |
nextPutAll:' '; |
|
233 |
nextPutAll:(mod package "libraryName"); |
|
234 |
nextPutLine:' (',(mod type),')'. |
|
235 |
]. |
|
236 |
||
237 |
self errorStream nextPutLine:'builtIn:'. |
|
238 |
((ObjectMemory binaryModuleInfo |
|
15365 | 239 |
reject:[:m | m dynamic]) |
13865 | 240 |
asSortedCollection:[:a :b | a name < b name]) do:printModule. |
241 |
||
242 |
self errorStream nextPutLine:'dynamic:'. |
|
243 |
((ObjectMemory binaryModuleInfo |
|
244 |
select:[:m | m dynamic]) |
|
245 |
asSortedCollection:[:a :b | a name < b name]) do:printModule. |
|
246 |
||
247 |
^ self. |
|
248 |
]. |
|
10463 | 249 |
(what startsWith:'mem') ifTrue:[ |
13865 | 250 |
all := ObjectMemory oldSpaceUsed + ObjectMemory symSpaceUsed |
251 |
+ ObjectMemory newSpaceUsed. |
|
10463 | 252 |
self errorStream |
13865 | 253 |
nextPutLine:('overall: ',(all // 1024) printString,' Kb'); |
254 |
nextPutLine:('in use : ',(ObjectMemory bytesUsed // 1024) printString,' Kb'); |
|
10463 | 255 |
nextPutLine:('free : ',(ObjectMemory freeSpace // 1024) printString,' Kb'); |
256 |
nextPutLine:('minorGC: ',(ObjectMemory scavengeCount) printString); |
|
257 |
nextPutLine:('majorGC: ',(ObjectMemory garbageCollectCount) printString). |
|
258 |
^ self. |
|
259 |
]. |
|
260 |
(what startsWith:'flag') ifTrue:[ |
|
261 |
self errorStream |
|
262 |
nextPutLine:('trace : ',traceFlag printString); |
|
263 |
nextPutLine:('timing: ',timingFlag printString). |
|
264 |
^ self. |
|
265 |
]. |
|
266 |
||
267 |
self errorStream nextPutLine:'?? show what ?'. |
|
10255 | 268 |
|
13866 | 269 |
"Modified: / 07-12-2011 / 22:15:07 / cg" |
10255 | 270 |
! |
271 |
||
10463 | 272 |
cmd_use:lineStream |
13852 | 273 |
|pkg ok| |
10463 | 274 |
|
275 |
lineStream skipSeparators. |
|
276 |
pkg := lineStream upToEnd withoutSeparators. |
|
13852 | 277 |
(ok := Smalltalk loadPackage:pkg) ifFalse:[ |
278 |
"/ allow for some shortcuts... |
|
279 |
(pkg includes:$:) ifFalse:[ |
|
280 |
"/ try stx standard package |
|
13858 | 281 |
ok := Smalltalk loadPackage:('stx:',pkg) |
13852 | 282 |
]. |
283 |
]. |
|
284 |
ok ifFalse:[ |
|
13853 | 285 |
('Failed to load package: "',pkg,'"') infoPrintCR. |
13852 | 286 |
]. |
10255 | 287 |
|
288 |
"Created: / 07-12-2006 / 19:07:56 / cg" |
|
10463 | 289 |
! |
290 |
||
291 |
directive:line |
|
292 |
|s cmd| |
|
293 |
||
294 |
s := line readStream. |
|
295 |
s next. "/ skip the hash |
|
296 |
s skipSeparators. |
|
297 |
||
298 |
cmd := s nextAlphaNumericWord. |
|
299 |
self |
|
300 |
perform:('cmd_',cmd,':') asSymbol with:s |
|
301 |
ifNotUnderstood:[ |
|
302 |
self errorStream |
|
303 |
nextPutAll:'?? invalid command: '; |
|
304 |
nextPutAll:cmd; |
|
305 |
nextPutAll:'. Type "#help" for help.'; |
|
306 |
cr. |
|
307 |
]. |
|
308 |
||
309 |
"Created: / 07-12-2006 / 18:49:17 / cg" |
|
10255 | 310 |
! ! |
311 |
||
10248 | 312 |
!ReadEvalPrintLoop methodsFor:'evaluation'! |
313 |
||
10463 | 314 |
readEvalPrintLoop |
315 |
"{ Pragma: +optSpace }" |
|
316 |
||
317 |
"simple read-eval-print loop for non-graphical Minitalk. |
|
318 |
If the chunkFormat-argument is true, chunks are read. |
|
319 |
Otherwise, lines up to an empty line (or EOF) are read." |
|
320 |
||
10628
284266d54dbe
#exit only leaves the rep-loop
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
321 |
exitAction := [^ self]. |
284266d54dbe
#exit only leaves the rep-loop
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
322 |
|
10463 | 323 |
ControlInterrupt handle:[:ex | |
324 |
self errorStream nextPutLine:('Cought: ', ex description). |
|
325 |
ex restart. |
|
326 |
] do:[ |
|
327 |
[ |
|
328 |
|input output error lines chunk compilerClass| |
|
329 |
||
330 |
"/ re-evaluate these in the loop, so they can be changed dynamically |
|
331 |
input := self inputStream. |
|
332 |
output := self outputStream. |
|
333 |
error := self errorStream. |
|
13768
b2bf7d051177
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13301
diff
changeset
|
334 |
compilerClass := compiler ? Compiler ? Parser. |
b2bf7d051177
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13301
diff
changeset
|
335 |
compilerClass isNil ifTrue:[ |
b2bf7d051177
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13301
diff
changeset
|
336 |
self errorStream nextPutLine:('oops - no Compiler class found'). |
b2bf7d051177
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13301
diff
changeset
|
337 |
^ self. |
b2bf7d051177
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13301
diff
changeset
|
338 |
]. |
10463 | 339 |
|
340 |
prompt notNil ifTrue:[ |
|
341 |
error nextPutAll:prompt. |
|
342 |
]. |
|
343 |
||
344 |
input atEnd ifTrue:[ |
|
345 |
^ self. |
|
346 |
]. |
|
347 |
||
10632 | 348 |
self doChunkFormat ifTrue:[ |
10463 | 349 |
input skipSeparators. |
350 |
chunk := input nextChunk. |
|
351 |
] ifFalse:[ |
|
352 |
lines := OrderedCollection new. |
|
353 |
[ |
|
354 |
|line| |
|
355 |
||
356 |
line := input nextLine. |
|
357 |
line notEmptyOrNil ifTrue:[ |
|
358 |
line = '?' ifTrue:[ |
|
359 |
self cmd_help:nil. |
|
360 |
prompt notNil ifTrue:[ |
|
361 |
error nextPutAll:prompt. |
|
362 |
]. |
|
363 |
] ifFalse:[ |
|
364 |
(line startsWith:'#') ifTrue:[ |
|
365 |
self directive:line. |
|
366 |
prompt notNil ifTrue:[ |
|
367 |
error nextPutAll:prompt. |
|
368 |
]. |
|
369 |
] ifFalse:[ |
|
370 |
lines add:line. |
|
371 |
] |
|
372 |
] |
|
373 |
]. |
|
374 |
line notEmptyOrNil. |
|
375 |
] whileTrue. |
|
376 |
chunk := lines asStringWith:Character cr. |
|
377 |
]. |
|
378 |
||
379 |
chunk notEmptyOrNil ifTrue:[ |
|
13301
1ac169f2af1d
comment/format in: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13121
diff
changeset
|
380 |
"abortAll is handled, but not asked for here!!" |
10500
3106f50bd9d7
AbortOperationRequest is a child of AbortAllOperationRequest
Stefan Vogel <sv@exept.de>
parents:
10463
diff
changeset
|
381 |
AbortAllOperationRequest handle:[:ex | |
10463 | 382 |
error nextPutLine:('Evaluation aborted: ', ex description) |
383 |
] do:[ |
|
384 |
(Error, ControlInterrupt) handle:[:ex | |
|
385 |
prompt isNil ifTrue:[ |
|
386 |
ex reject |
|
387 |
]. |
|
388 |
MiniDebugger enterWithMessage:(ex errorString) mayProceed:true. |
|
389 |
ex mayProceed ifTrue:[ |
|
390 |
ex proceed. |
|
391 |
]. |
|
392 |
error nextPutLine:('Evaluation aborted: ', ex description). |
|
393 |
ex return. |
|
394 |
] do:[ |
|
13854
cd43a7823f9b
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13853
diff
changeset
|
395 |
|value t| |
10463 | 396 |
|
13859
81451e09af8d
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13858
diff
changeset
|
397 |
t := Time millisecondsToRun:[ |
13854
cd43a7823f9b
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13853
diff
changeset
|
398 |
value := (compilerClass new requestor:self) evaluate:chunk compile:true. |
cd43a7823f9b
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13853
diff
changeset
|
399 |
]. |
10463 | 400 |
value printOn:output. |
401 |
output cr. |
|
13854
cd43a7823f9b
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13853
diff
changeset
|
402 |
timingFlag == true ifTrue:[ |
cd43a7823f9b
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13853
diff
changeset
|
403 |
'execution time: ' printOn:output. |
13856
a91a569695ec
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13855
diff
changeset
|
404 |
t = 0 ifTrue:[ |
a91a569695ec
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13855
diff
changeset
|
405 |
'too small to measure (<1ms)' printOn:output. |
a91a569695ec
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13855
diff
changeset
|
406 |
] ifFalse:[ |
a91a569695ec
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13855
diff
changeset
|
407 |
t printOn:output. |
a91a569695ec
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13855
diff
changeset
|
408 |
'ms' printOn:output. |
a91a569695ec
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13855
diff
changeset
|
409 |
]. |
13854
cd43a7823f9b
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13853
diff
changeset
|
410 |
output cr. |
cd43a7823f9b
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13853
diff
changeset
|
411 |
]. |
10463 | 412 |
]. |
413 |
]. |
|
414 |
]. |
|
415 |
] loop. |
|
416 |
] |
|
417 |
||
418 |
" |
|
419 |
(ReadEvalPrintLoop new prompt:'>') readEvalPrintLoop |
|
420 |
" |
|
421 |
||
422 |
"Created: / 07-12-2006 / 17:27:21 / cg" |
|
13859
81451e09af8d
changed: #readEvalPrintLoop
Claus Gittinger <cg@exept.de>
parents:
13858
diff
changeset
|
423 |
"Modified: / 06-12-2011 / 15:29:03 / cg" |
10248 | 424 |
! ! |
425 |
||
426 |
!ReadEvalPrintLoop class methodsFor:'documentation'! |
|
427 |
||
428 |
version |
|
15365 | 429 |
^ '$Header: /cvs/stx/stx/libbasic/ReadEvalPrintLoop.st,v 1.40 2013-06-04 10:30:45 cg Exp $' |
13121
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
430 |
! |
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
431 |
|
e0cc829d4b4d
added: #correctableError:position:to:from:
Claus Gittinger <cg@exept.de>
parents:
10635
diff
changeset
|
432 |
version_CVS |
15365 | 433 |
^ '$Header: /cvs/stx/stx/libbasic/ReadEvalPrintLoop.st,v 1.40 2013-06-04 10:30:45 cg Exp $' |
10248 | 434 |
! ! |
15365 | 435 |