4
|
1 |
"{ Package: 'stx:goodies/petitparser' }"
|
0
|
2 |
|
|
3 |
PPDelegateParser subclass:#PPNotParser
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'PetitParser-Parsers'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!PPNotParser methodsFor:'parsing'!
|
|
12 |
|
|
13 |
parseOn: aStream
|
|
14 |
| element position |
|
|
15 |
position := aStream position.
|
|
16 |
element := parser parseOn: aStream.
|
|
17 |
aStream position: position.
|
|
18 |
^ element isPetitFailure
|
|
19 |
ifFalse: [ PPFailure message: '' at: aStream position ]
|
|
20 |
! !
|
|
21 |
|
|
22 |
!PPNotParser class methodsFor:'documentation'!
|
|
23 |
|
43
|
24 |
version
|
|
25 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPNotParser.st,v 1.3 2012-05-04 22:06:22 vrany Exp $'
|
|
26 |
!
|
|
27 |
|
|
28 |
version_CVS
|
|
29 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPNotParser.st,v 1.3 2012-05-04 22:06:22 vrany Exp $'
|
|
30 |
!
|
|
31 |
|
0
|
32 |
version_SVN
|
43
|
33 |
^ '§Id: PPNotParser.st 2 2010-12-17 18:44:23Z vranyj1 §'
|
0
|
34 |
! !
|