equal
deleted
inserted
replaced
|
1 "{ Package: 'stx:goodies/petitparser/analyzer' }" |
|
2 |
|
3 PPReplaceRule subclass:#PPBlockReplaceRule |
|
4 instanceVariableNames:'replaceBlock' |
|
5 classVariableNames:'' |
|
6 poolDictionaries:'' |
|
7 category:'PetitAnalyzer-Core' |
|
8 ! |
|
9 |
|
10 |
|
11 !PPBlockReplaceRule class methodsFor:'instance creation'! |
|
12 |
|
13 searchFor: aSearchParser replaceWith: aReplaceBlock when: aVerificationBlock |
|
14 ^ (self searchFor: aSearchParser) |
|
15 setReplaceBlock: aReplaceBlock; |
|
16 setVerificationBlock: aVerificationBlock; |
|
17 yourself |
|
18 ! ! |
|
19 |
|
20 !PPBlockReplaceRule methodsFor:'initialization'! |
|
21 |
|
22 setReplaceBlock: aBlock |
|
23 replaceBlock := aBlock |
|
24 ! ! |
|
25 |
|
26 !PPBlockReplaceRule methodsFor:'matching'! |
|
27 |
|
28 foundMatchFor: aParser |
|
29 ^ replaceBlock cull: aParser |
|
30 ! ! |
|
31 |
|
32 !PPBlockReplaceRule class methodsFor:'documentation'! |
|
33 |
|
34 version |
|
35 ^ '$Header: /cvs/stx/stx/goodies/petitparser/analyzer/PPBlockReplaceRule.st,v 1.1 2014-03-04 15:40:54 cg Exp $' |
|
36 ! |
|
37 |
|
38 version_CVS |
|
39 ^ '$Header: /cvs/stx/stx/goodies/petitparser/analyzer/PPBlockReplaceRule.st,v 1.1 2014-03-04 15:40:54 cg Exp $' |
|
40 ! ! |
|
41 |