4
|
1 |
"{ Package: 'stx:goodies/petitparser' }"
|
0
|
2 |
|
|
3 |
PPParser subclass:#PPPredicateParser
|
|
4 |
instanceVariableNames:'predicate predicateMessage negated negatedMessage'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'PetitParser-Parsers'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
177
|
11 |
!PPPredicateParser methodsFor:'*petitanalyzer-matching'!
|
|
12 |
|
|
13 |
match: aParser inContext: aDictionary seen: anIdentitySet
|
|
14 |
^ (super match: aParser inContext: aDictionary seen: anIdentitySet) and: [ self block = aParser block and: [ self message = aParser message ] ]
|
|
15 |
! !
|
|
16 |
|
0
|
17 |
!PPPredicateParser methodsFor:'accessing'!
|
|
18 |
|
|
19 |
block
|
|
20 |
"Answer the predicate block of the receiver."
|
23
|
21 |
|
0
|
22 |
^ predicate
|
|
23 |
!
|
|
24 |
|
|
25 |
message
|
|
26 |
"Answer the failure message."
|
23
|
27 |
|
0
|
28 |
^ predicateMessage
|
|
29 |
! !
|
|
30 |
|
|
31 |
!PPPredicateParser methodsFor:'printing'!
|
|
32 |
|
|
33 |
printNameOn: aStream
|
|
34 |
super printNameOn: aStream.
|
|
35 |
aStream nextPutAll: ', '; print: predicateMessage
|
|
36 |
! !
|
|
37 |
|
|
38 |
!PPPredicateParser class methodsFor:'documentation'!
|
|
39 |
|
23
|
40 |
version
|
177
|
41 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPPredicateParser.st,v 1.4 2014-03-04 14:33:21 cg Exp $'
|
23
|
42 |
!
|
|
43 |
|
|
44 |
version_CVS
|
177
|
45 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPPredicateParser.st,v 1.4 2014-03-04 14:33:21 cg Exp $'
|
23
|
46 |
!
|
|
47 |
|
0
|
48 |
version_SVN
|
177
|
49 |
^ '$Id: PPPredicateParser.st,v 1.4 2014-03-04 14:33:21 cg Exp $'
|
0
|
50 |
! !
|
177
|
51 |
|