PPFailure.st
changeset 45 ca9fad0faa21
parent 4 90de244a7fa2
child 377 6112a403a52d
equal deleted inserted replaced
44:16f1a2fdc0d7 45:ca9fad0faa21
     3 Object subclass:#PPFailure
     3 Object subclass:#PPFailure
     4 	instanceVariableNames:'message position'
     4 	instanceVariableNames:'message position'
     5 	classVariableNames:''
     5 	classVariableNames:''
     6 	poolDictionaries:''
     6 	poolDictionaries:''
     7 	category:'PetitParser-Core'
     7 	category:'PetitParser-Core'
     8 !
       
     9 
       
    10 PPFailure comment:'The failure object in PetitParser. It is the only class that responds to #isPetitFailure with true. It contains an error message and a position of the occurrence of the failure.
       
    11 Instance Variables:
       
    12 	message <String>        The error message of this failure.
       
    13 	position        <Integer>       The position of this failure in the input stream.
       
    14 '
       
    15 !
     8 !
    16 
     9 
    17 
    10 
    18 !PPFailure class methodsFor:'instance creation'!
    11 !PPFailure class methodsFor:'instance creation'!
    19 
    12 
    23 
    16 
    24 !PPFailure methodsFor:'accessing'!
    17 !PPFailure methodsFor:'accessing'!
    25 
    18 
    26 message
    19 message
    27 	"Answer a human readable error message of this parse failure."
    20 	"Answer a human readable error message of this parse failure."
    28 
    21 	
    29 	^ message
    22 	^ message
    30 !
    23 !
    31 
    24 
    32 position
    25 position
    33 	"Answer the position in the source string that caused this parse failure."
    26 	"Answer the position in the source string that caused this parse failure."
    56 	^ true
    49 	^ true
    57 ! !
    50 ! !
    58 
    51 
    59 !PPFailure class methodsFor:'documentation'!
    52 !PPFailure class methodsFor:'documentation'!
    60 
    53 
       
    54 version
       
    55     ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPFailure.st,v 1.3 2012-05-04 22:08:15 vrany Exp $'
       
    56 !
       
    57 
       
    58 version_CVS
       
    59     ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPFailure.st,v 1.3 2012-05-04 22:08:15 vrany Exp $'
       
    60 !
       
    61 
    61 version_SVN
    62 version_SVN
    62     ^ '$Id: PPFailure.st,v 1.2 2012-01-13 11:22:50 cg Exp $'
    63     ^ '§Id: PPFailure.st 2 2010-12-17 18:44:23Z vranyj1 §'
    63 ! !
    64 ! !