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 |
PPDelegateParser comment:'A parser that delegates to another parser.
|
|
11 |
Instance Variables:
|
4
|
12 |
parser <PPParser> The parser to delegate to.'
|
0
|
13 |
!
|
|
14 |
|
|
15 |
|
|
16 |
!PPDelegateParser class methodsFor:'instance creation'!
|
|
17 |
|
|
18 |
on: aParser
|
|
19 |
^ self new setParser: aParser
|
|
20 |
! !
|
|
21 |
|
|
22 |
!PPDelegateParser methodsFor:'accessing'!
|
|
23 |
|
|
24 |
children
|
|
25 |
^ Array with: parser
|
|
26 |
! !
|
|
27 |
|
|
28 |
!PPDelegateParser methodsFor:'initialization'!
|
|
29 |
|
|
30 |
setParser: aParser
|
|
31 |
parser := aParser
|
|
32 |
! !
|
|
33 |
|
|
34 |
!PPDelegateParser methodsFor:'parsing'!
|
|
35 |
|
|
36 |
parseOn: aStream
|
|
37 |
^ parser parseOn: aStream
|
|
38 |
! !
|
|
39 |
|
|
40 |
!PPDelegateParser class methodsFor:'documentation'!
|
|
41 |
|
|
42 |
version_SVN
|
4
|
43 |
^ '$Id: PPDelegateParser.st,v 1.2 2012-01-13 11:22:50 cg Exp $'
|
0
|
44 |
! !
|