equal
deleted
inserted
replaced
|
1 "{ Package: 'squeak:petitparser' }" |
|
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: |
|
12 parser <PPParser> The parser to delegate to.' |
|
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 |
|
43 ^ '$Id: PPDelegateParser.st,v 1.1 2011-08-18 18:56:17 cg Exp $' |
|
44 ! ! |