PPFailure.st
changeset 4 90de244a7fa2
parent 0 739fe9b7253e
child 45 ca9fad0faa21
equal deleted inserted replaced
3:e1b11f74e142 4:90de244a7fa2
     1 "{ Package: 'squeak:petitparser' }"
     1 "{ Package: 'stx:goodies/petitparser' }"
     2 
     2 
     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 !
     8 !
     9 
     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.
    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:
    11 Instance Variables:
    12 	message	<String>	The error message of this failure.
    12 	message <String>        The error message of this failure.
    13 	position	<Integer>	The position of this failure in the input stream.
    13 	position        <Integer>       The position of this failure in the input stream.
    14 '
    14 '
    15 !
    15 !
    16 
    16 
    17 
    17 
    18 !PPFailure class methodsFor:'instance creation'!
    18 !PPFailure class methodsFor:'instance creation'!
    23 
    23 
    24 !PPFailure methodsFor:'accessing'!
    24 !PPFailure methodsFor:'accessing'!
    25 
    25 
    26 message
    26 message
    27 	"Answer a human readable error message of this parse failure."
    27 	"Answer a human readable error message of this parse failure."
    28 	
    28 
    29 	^ message
    29 	^ message
    30 !
    30 !
    31 
    31 
    32 position
    32 position
    33 	"Answer the position in the source string that caused this parse failure."
    33 	"Answer the position in the source string that caused this parse failure."
    57 ! !
    57 ! !
    58 
    58 
    59 !PPFailure class methodsFor:'documentation'!
    59 !PPFailure class methodsFor:'documentation'!
    60 
    60 
    61 version_SVN
    61 version_SVN
    62     ^ '$Id: PPFailure.st,v 1.1 2011-08-18 18:56:17 cg Exp $'
    62     ^ '$Id: PPFailure.st,v 1.2 2012-01-13 11:22:50 cg Exp $'
    63 ! !
    63 ! !