author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 08 Sep 2015 02:40:05 +0100 | |
changeset 543 | 02d90f0038fd |
parent 502 | 1e45d3c96ec5 |
permissions | -rw-r--r-- |
4 | 1 |
"{ Package: 'stx:goodies/petitparser' }" |
0 | 2 |
|
502
1e45d3c96ec5
Updated to PetitCompiler-JanVrany.135, PetitCompiler-Tests-JanKurs.93, PetitCompiler-Extras-Tests-JanVrany.16, PetitCompiler-Benchmarks-JanKurs.12
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
3 |
"{ NameSpace: Smalltalk }" |
1e45d3c96ec5
Updated to PetitCompiler-JanVrany.135, PetitCompiler-Tests-JanKurs.93, PetitCompiler-Extras-Tests-JanVrany.16, PetitCompiler-Benchmarks-JanKurs.12
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
4 |
|
0 | 5 |
PPParser subclass:#PPDelegateParser |
6 |
instanceVariableNames:'parser' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'PetitParser-Parsers' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!PPDelegateParser class methodsFor:'instance creation'! |
|
14 |
||
15 |
on: aParser |
|
16 |
^ self new setParser: aParser |
|
17 |
! ! |
|
18 |
||
162 | 19 |
|
502
1e45d3c96ec5
Updated to PetitCompiler-JanVrany.135, PetitCompiler-Tests-JanKurs.93, PetitCompiler-Extras-Tests-JanVrany.16, PetitCompiler-Benchmarks-JanKurs.12
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
20 |
|
1e45d3c96ec5
Updated to PetitCompiler-JanVrany.135, PetitCompiler-Tests-JanKurs.93, PetitCompiler-Extras-Tests-JanVrany.16, PetitCompiler-Benchmarks-JanKurs.12
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
21 |
|
0 | 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 |
||
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
162
diff
changeset
|
36 |
parseOn: aPPContext |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
162
diff
changeset
|
37 |
^ parser parseOn: aPPContext |
0 | 38 |
! ! |
39 |
||
40 |
!PPDelegateParser class methodsFor:'documentation'! |
|
41 |
||
24 | 42 |
version |
162 | 43 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPDelegateParser.st,v 1.4 2014-03-04 14:32:24 cg Exp $' |
24 | 44 |
! |
45 |
||
46 |
version_CVS |
|
162 | 47 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPDelegateParser.st,v 1.4 2014-03-04 14:32:24 cg Exp $' |
24 | 48 |
! |
49 |
||
0 | 50 |
version_SVN |
162 | 51 |
^ '$Id: PPDelegateParser.st,v 1.4 2014-03-04 14:32:24 cg Exp $' |
0 | 52 |
! ! |
162 | 53 |