4
|
1 |
"{ Package: 'stx:goodies/petitparser' }"
|
0
|
2 |
|
|
3 |
PPParser subclass:#PPDelegateParser
|
|
4 |
instanceVariableNames:'parser'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'PetitParser-Parsers'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!PPDelegateParser class methodsFor:'instance creation'!
|
|
12 |
|
|
13 |
on: aParser
|
|
14 |
^ self new setParser: aParser
|
|
15 |
! !
|
|
16 |
|
162
|
17 |
!PPDelegateParser methodsFor:'*petitanalyzer-transforming'!
|
|
18 |
|
|
19 |
replace: aParser with: anotherParser
|
|
20 |
super replace: aParser with: anotherParser.
|
|
21 |
parser == aParser ifTrue: [ parser := anotherParser ]
|
|
22 |
! !
|
|
23 |
|
0
|
24 |
!PPDelegateParser methodsFor:'accessing'!
|
|
25 |
|
|
26 |
children
|
|
27 |
^ Array with: parser
|
|
28 |
! !
|
|
29 |
|
|
30 |
!PPDelegateParser methodsFor:'initialization'!
|
|
31 |
|
|
32 |
setParser: aParser
|
|
33 |
parser := aParser
|
|
34 |
! !
|
|
35 |
|
|
36 |
!PPDelegateParser methodsFor:'parsing'!
|
|
37 |
|
|
38 |
parseOn: aStream
|
|
39 |
^ parser parseOn: aStream
|
|
40 |
! !
|
|
41 |
|
|
42 |
!PPDelegateParser class methodsFor:'documentation'!
|
|
43 |
|
24
|
44 |
version
|
162
|
45 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPDelegateParser.st,v 1.4 2014-03-04 14:32:24 cg Exp $'
|
24
|
46 |
!
|
|
47 |
|
|
48 |
version_CVS
|
162
|
49 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPDelegateParser.st,v 1.4 2014-03-04 14:32:24 cg Exp $'
|
24
|
50 |
!
|
|
51 |
|
0
|
52 |
version_SVN
|
162
|
53 |
^ '$Id: PPDelegateParser.st,v 1.4 2014-03-04 14:32:24 cg Exp $'
|
0
|
54 |
! !
|
162
|
55 |
|