author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 08 Sep 2015 03:20:10 +0100 | |
changeset 545 | ecf04090fc50 |
parent 405 | 0470a5e6e712 |
child 642 | 77d5fddb6462 |
permissions | -rw-r--r-- |
4 | 1 |
"{ Package: 'stx:goodies/petitparser' }" |
0 | 2 |
|
3 |
Object subclass:#PPMemento |
|
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
4 |
instanceVariableNames:'result count context' |
0 | 5 |
classVariableNames:'' |
6 |
poolDictionaries:'' |
|
7 |
category:'PetitParser-Core' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!PPMemento class methodsFor:'instance creation'! |
|
12 |
||
13 |
new |
|
14 |
^ self basicNew initialize |
|
15 |
! ! |
|
16 |
||
17 |
!PPMemento methodsFor:'accessing'! |
|
18 |
||
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
19 |
contextMemento |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
20 |
^ context |
0 | 21 |
! |
22 |
||
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
23 |
contextMemento: aPPContextMemento |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
24 |
context := aPPContextMemento |
0 | 25 |
! |
26 |
||
27 |
result |
|
28 |
^ result |
|
29 |
! |
|
30 |
||
31 |
result: anObject |
|
32 |
result := anObject |
|
33 |
! ! |
|
34 |
||
35 |
!PPMemento methodsFor:'accessing-readonly'! |
|
36 |
||
37 |
count |
|
38 |
^ count |
|
39 |
! ! |
|
40 |
||
41 |
!PPMemento methodsFor:'actions'! |
|
42 |
||
43 |
increment |
|
44 |
count := count + 1 |
|
45 |
! ! |
|
46 |
||
47 |
!PPMemento methodsFor:'initialization'! |
|
48 |
||
49 |
initialize |
|
50 |
count := 0 |
|
19 | 51 |
|
0 | 52 |
! ! |
53 |
||
54 |
!PPMemento class methodsFor:'documentation'! |
|
55 |
||
19 | 56 |
version |
57 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPMemento.st,v 1.3 2012-05-04 22:00:45 vrany Exp $' |
|
58 |
! |
|
59 |
||
60 |
version_CVS |
|
61 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPMemento.st,v 1.3 2012-05-04 22:00:45 vrany Exp $' |
|
62 |
! |
|
63 |
||
405
0470a5e6e712
Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
64 |
version_HG |
0470a5e6e712
Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
65 |
|
0470a5e6e712
Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
66 |
^ '$Changeset: <not expanded> $' |
0470a5e6e712
Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
67 |
! |
0470a5e6e712
Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
68 |
|
0 | 69 |
version_SVN |
19 | 70 |
^ '§Id: PPMemento.st 2 2010-12-17 18:44:23Z vranyj1 §' |
0 | 71 |
! ! |
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
72 |