author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 03 Oct 2014 01:59:10 +0100 | |
changeset 376 | a2656b27cace |
parent 294 | 5d418170085c |
permissions | -rw-r--r-- |
201 | 1 |
"{ Package: 'stx:goodies/petitparser/analyzer' }" |
2 |
||
3 |
PPRule subclass:#PPReplaceRule |
|
4 |
instanceVariableNames:'verificationBlock' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'PetitAnalyzer-Core' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!PPReplaceRule methodsFor:'initialization'! |
|
12 |
||
13 |
initialize |
|
14 |
super initialize. |
|
15 |
verificationBlock := [ :parser | true ] |
|
16 |
! |
|
17 |
||
18 |
setVerificationBlock: aBlock |
|
19 |
verificationBlock := aBlock |
|
20 |
! ! |
|
21 |
||
22 |
!PPReplaceRule methodsFor:'matching'! |
|
23 |
||
24 |
canMatch: aParser |
|
25 |
^ verificationBlock cull: aParser |
|
26 |
! ! |
|
27 |
||
28 |
!PPReplaceRule class methodsFor:'documentation'! |
|
29 |
||
30 |
version |
|
294 | 31 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/analyzer/PPReplaceRule.st,v 1.2 2014-03-04 20:27:53 cg Exp $' |
201 | 32 |
! |
33 |
||
34 |
version_CVS |
|
294 | 35 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/analyzer/PPReplaceRule.st,v 1.2 2014-03-04 20:27:53 cg Exp $' |
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
294
diff
changeset
|
36 |
! |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
294
diff
changeset
|
37 |
|
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
294
diff
changeset
|
38 |
version_HG |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
294
diff
changeset
|
39 |
|
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
294
diff
changeset
|
40 |
^ '$Changeset: <not expanded> $' |
201 | 41 |
! ! |
42 |