4
|
1 |
"{ Package: 'stx:goodies/petitparser' }"
|
0
|
2 |
|
|
3 |
Object subclass:#PPMemento
|
|
4 |
instanceVariableNames:'result count position'
|
|
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 |
|
|
19 |
position
|
|
20 |
^ position
|
|
21 |
!
|
|
22 |
|
|
23 |
position: anInteger
|
|
24 |
position := anInteger
|
|
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 |
|
0
|
64 |
version_SVN
|
19
|
65 |
^ '§Id: PPMemento.st 2 2010-12-17 18:44:23Z vranyj1 §'
|
0
|
66 |
! !
|