author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 24 Jul 2019 21:13:30 +0000 | |
changeset 643 | 65da3a4195b6 |
parent 642 | 77d5fddb6462 |
permissions | -rw-r--r-- |
642
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
405
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
405
diff
changeset
|
2 |
|
4 | 3 |
"{ Package: 'stx:goodies/petitparser' }" |
0 | 4 |
|
5 |
Object subclass:#PPMemento |
|
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
6 |
instanceVariableNames:'result count context' |
0 | 7 |
classVariableNames:'' |
8 |
poolDictionaries:'' |
|
9 |
category:'PetitParser-Core' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!PPMemento class methodsFor:'instance creation'! |
|
14 |
||
15 |
new |
|
16 |
^ self basicNew initialize |
|
17 |
! ! |
|
18 |
||
19 |
!PPMemento methodsFor:'accessing'! |
|
20 |
||
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
21 |
contextMemento |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
22 |
^ context |
0 | 23 |
! |
24 |
||
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
25 |
contextMemento: aPPContextMemento |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
26 |
context := aPPContextMemento |
0 | 27 |
! |
28 |
||
29 |
result |
|
30 |
^ result |
|
31 |
! |
|
32 |
||
33 |
result: anObject |
|
34 |
result := anObject |
|
35 |
! ! |
|
36 |
||
37 |
!PPMemento methodsFor:'accessing-readonly'! |
|
38 |
||
39 |
count |
|
40 |
^ count |
|
41 |
! ! |
|
42 |
||
43 |
!PPMemento methodsFor:'actions'! |
|
44 |
||
45 |
increment |
|
46 |
count := count + 1 |
|
47 |
! ! |
|
48 |
||
49 |
!PPMemento methodsFor:'initialization'! |
|
50 |
||
51 |
initialize |
|
52 |
count := 0 |
|
19 | 53 |
|
0 | 54 |
! ! |
55 |
||
56 |
!PPMemento class methodsFor:'documentation'! |
|
57 |
||
19 | 58 |
version |
59 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPMemento.st,v 1.3 2012-05-04 22:00:45 vrany Exp $' |
|
60 |
! |
|
61 |
||
62 |
version_CVS |
|
63 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPMemento.st,v 1.3 2012-05-04 22:00:45 vrany Exp $' |
|
64 |
! |
|
65 |
||
405
0470a5e6e712
Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
66 |
version_HG |
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 |
^ '$Changeset: <not expanded> $' |
0470a5e6e712
Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
69 |
! |
0470a5e6e712
Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
70 |
|
0 | 71 |
version_SVN |
642
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
405
diff
changeset
|
72 |
^ '§Id: PPMemento.st 2 2010-12-17 18:44:23Z vranyj1 §' |
0 | 73 |
! ! |
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
74 |