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