author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 09 Nov 2015 00:38:23 +0000 | |
changeset 549 | 8ad6734770cd |
parent 377 | 6112a403a52d |
child 642 | 77d5fddb6462 |
permissions | -rw-r--r-- |
4 | 1 |
"{ Package: 'stx:goodies/petitparser' }" |
0 | 2 |
|
3 |
PPDelegateParser subclass:#PPAndParser |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'PetitParser-Parsers' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!PPAndParser methodsFor:'operations'! |
|
12 |
||
13 |
and |
|
14 |
^ self |
|
15 |
! ! |
|
16 |
||
17 |
!PPAndParser methodsFor:'parsing'! |
|
18 |
||
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
19 |
parseOn: aPPContext |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
20 |
| element memento | |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
21 |
memento := aPPContext remember. |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
22 |
element := parser parseOn: aPPContext. |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
23 |
aPPContext restore: memento. |
0 | 24 |
^ element |
25 |
! ! |
|
26 |
||
27 |
!PPAndParser class methodsFor:'documentation'! |
|
28 |
||
49 | 29 |
version |
30 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPAndParser.st,v 1.3 2012-05-04 22:08:57 vrany Exp $' |
|
31 |
! |
|
32 |
||
33 |
version_CVS |
|
34 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPAndParser.st,v 1.3 2012-05-04 22:08:57 vrany Exp $' |
|
35 |
! |
|
36 |
||
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
37 |
version_HG |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
38 |
|
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
39 |
^ '$Changeset: <not expanded> $' |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
40 |
! |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
41 |
|
0 | 42 |
version_SVN |
49 | 43 |
^ '§Id: PPAndParser.st 2 2010-12-17 18:44:23Z vranyj1 §' |
0 | 44 |
! ! |
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
45 |