author | Claus Gittinger <cg@exept.de> |
Thu, 15 Mar 2007 22:37:49 +0100 | |
changeset 10462 | 1db807a0f9e5 |
parent 10461 | 0b2935207fec |
child 10463 | 90c8fd90d3fc |
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 |
10255 | 16 |
doChunkFormat traceFlag timingFlag' |
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. |
0b2935207fec
+correctableError:position:to:
Claus Gittinger <cg@exept.de>
parents:
10277
diff
changeset
|
41 |
" |
10249 | 42 |
! ! |
10248 | 43 |
|
44 |
!ReadEvalPrintLoop methodsFor:'accessing'! |
|
45 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
46 |
nt loop for non-GUI or stscript operation. |
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
47 |
" |
10248 | 48 |
! |
49 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
50 |
! |
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
51 |
|
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
52 |
mat:something |
10254 | 53 |
doChunkFormat := something. |
54 |
||
55 |
"Created: / 07-12-2006 / 18:24:04 / cg" |
|
10248 | 56 |
! |
57 |
||
58 |
error:something |
|
59 |
errorStream := something. |
|
60 |
||
61 |
"Created: / 07-12-2006 / 17:33:39 / cg" |
|
62 |
! |
|
63 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
64 |
tream |
10256 | 65 |
^ errorStream ? Transcript ? Stderr |
66 |
||
67 |
"Created: / 07-12-2006 / 19:11:56 / cg" |
|
68 |
! |
|
69 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
70 |
nput:something |
10248 | 71 |
inputStream := something. |
72 |
||
73 |
"Modified: / 07-12-2006 / 17:33:31 / cg" |
|
74 |
! |
|
75 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
76 |
" |
10256 | 77 |
! |
78 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
79 |
tput:something |
10248 | 80 |
outputStream := something. |
81 |
||
82 |
"Created: / 07-12-2006 / 17:27:48 / cg" |
|
83 |
! |
|
84 |
||
85 |
! ! |
|
86 |
||
10255 | 87 |
!ReadEvalPrintLoop methodsFor:'directives'! |
88 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
89 |
prompt:something |
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
90 |
prompt := something. |
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
91 |
! |
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
92 |
|
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
93 |
m |
10255 | 94 |
self cmd_setOrClear:lineStream to:false |
95 |
||
96 |
"Created: / 07-12-2006 / 19:04:50 / cg" |
|
97 |
! |
|
98 |
||
99 |
! |
|
100 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
101 |
on |
10257 | 102 |
|
103 |
MiniDebugger shows its help with "?". |
|
10255 | 104 |
' |
105 |
||
106 |
"Created: / 07-12-2006 / 18:54:20 / cg" |
|
107 |
! |
|
108 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
109 |
m |
10255 | 110 |
self cmd_setOrClear:lineStream to:true |
111 |
||
112 |
"Modified: / 07-12-2006 / 19:04:46 / cg" |
|
113 |
! |
|
114 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
115 |
lf errorStream nextPutLine:'?? which flag ?'. |
10255 | 116 |
|
10256 | 117 |
"Modified: / 07-12-2006 / 19:13:34 / cg" |
10255 | 118 |
! |
119 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
120 |
elf errorStream nextPutLine:'?? show what ?'. |
10255 | 121 |
|
10261 | 122 |
"Modified: / 07-12-2006 / 19:23:15 / cg" |
10255 | 123 |
! |
124 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
125 |
houtSeparators. |
10255 | 126 |
Smalltalk loadPackage:pkg |
127 |
||
128 |
"Created: / 07-12-2006 / 19:07:56 / cg" |
|
129 |
! ! |
|
130 |
||
10248 | 131 |
!ReadEvalPrintLoop methodsFor:'evaluation'! |
132 |
||
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
133 |
correctableError:message position:pos1 to:pos2 from:aCompiler |
10461
0b2935207fec
+correctableError:position:to:
Claus Gittinger <cg@exept.de>
parents:
10277
diff
changeset
|
134 |
^ false |
0b2935207fec
+correctableError:position:to:
Claus Gittinger <cg@exept.de>
parents:
10277
diff
changeset
|
135 |
! |
0b2935207fec
+correctableError:position:to:
Claus Gittinger <cg@exept.de>
parents:
10277
diff
changeset
|
136 |
|
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
137 |
"Created: / 07-12-2006 / 18:49:17 / cg" |
10248 | 138 |
! ! |
139 |
||
140 |
!ReadEvalPrintLoop class methodsFor:'documentation'! |
|
141 |
||
142 |
version |
|
10462
1db807a0f9e5
+correctableError:position:to:from
Claus Gittinger <cg@exept.de>
parents:
10461
diff
changeset
|
143 |
^ '$Header: /cvs/stx/stx/libbasic/ReadEvalPrintLoop.st,v 1.20 2007-03-15 21:37:49 cg Exp $' |
10248 | 144 |
! ! |