equal
deleted
inserted
replaced
|
1 "{ Package: 'stx:goodies/petitparser/compiler/tests/extras' }" |
|
2 |
|
3 "{ NameSpace: Smalltalk }" |
|
4 |
|
5 PPCLRPNode subclass:#PPCLRPSpawn |
|
6 instanceVariableNames:'machine state' |
|
7 classVariableNames:'' |
|
8 poolDictionaries:'' |
|
9 category:'PetitCompiler-Extras-Tests-LRP' |
|
10 ! |
|
11 |
|
12 !PPCLRPSpawn class methodsFor:'instance creation'! |
|
13 |
|
14 machine: machineName state: stateName |
|
15 |retval| |
|
16 retval := self new. |
|
17 retval machine: machineName. |
|
18 retval state: stateName. |
|
19 ^retval |
|
20 ! ! |
|
21 |
|
22 !PPCLRPSpawn methodsFor:'accessing'! |
|
23 |
|
24 machine |
|
25 ^ machine |
|
26 ! |
|
27 |
|
28 machine: anObject |
|
29 machine := anObject |
|
30 ! |
|
31 |
|
32 state |
|
33 ^ state |
|
34 ! |
|
35 |
|
36 state: anObject |
|
37 state := anObject |
|
38 ! ! |
|
39 |
|
40 !PPCLRPSpawn methodsFor:'printing'! |
|
41 |
|
42 printOn: aStream |
|
43 aStream nextPutAll: 'PPCLRPSpawn '. |
|
44 aStream nextPutAll: machine asString. |
|
45 aStream nextPutAll: ' : '. |
|
46 aStream nextPutAll: state asString. |
|
47 ! ! |
|
48 |