PPTokenParser.st
changeset 16 3b8de4bf5696
parent 4 90de244a7fa2
child 181 6e0a8571dd88
equal deleted inserted replaced
15:421e0a6582d4 16:3b8de4bf5696
     3 PPFlattenParser subclass:#PPTokenParser
     3 PPFlattenParser subclass:#PPTokenParser
     4 	instanceVariableNames:'tokenClass'
     4 	instanceVariableNames:'tokenClass'
     5 	classVariableNames:''
     5 	classVariableNames:''
     6 	poolDictionaries:''
     6 	poolDictionaries:''
     7 	category:'PetitParser-Parsers'
     7 	category:'PetitParser-Parsers'
     8 !
       
     9 
       
    10 PPTokenParser comment:'A parser that answers a token of the range my delegate parses.
       
    11 Instance Variables:
       
    12 	tokenClass      <PPToken class> The token sub-class to be used.'
       
    13 !
     8 !
    14 
     9 
    15 
    10 
    16 !PPTokenParser methodsFor:'accessing'!
    11 !PPTokenParser methodsFor:'accessing'!
    17 
    12 
    25 
    20 
    26 !PPTokenParser methodsFor:'initialization'!
    21 !PPTokenParser methodsFor:'initialization'!
    27 
    22 
    28 initialize
    23 initialize
    29 	tokenClass := self defaultTokenClass
    24 	tokenClass := self defaultTokenClass
    30 
    25 	
    31 ! !
    26 ! !
    32 
    27 
    33 !PPTokenParser methodsFor:'private'!
    28 !PPTokenParser methodsFor:'private'!
    34 
    29 
    35 create: aCollection start: aStartInteger stop: aStopInteger
    30 create: aCollection start: aStartInteger stop: aStopInteger
    40 	^ PPToken
    35 	^ PPToken
    41 ! !
    36 ! !
    42 
    37 
    43 !PPTokenParser class methodsFor:'documentation'!
    38 !PPTokenParser class methodsFor:'documentation'!
    44 
    39 
       
    40 version
       
    41     ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPTokenParser.st,v 1.3 2012-05-04 22:00:04 vrany Exp $'
       
    42 !
       
    43 
       
    44 version_CVS
       
    45     ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPTokenParser.st,v 1.3 2012-05-04 22:00:04 vrany Exp $'
       
    46 !
       
    47 
    45 version_SVN
    48 version_SVN
    46     ^ '$Id: PPTokenParser.st,v 1.2 2012-01-13 11:22:50 cg Exp $'
    49     ^ '§Id: PPTokenParser.st 2 2010-12-17 18:44:23Z vranyj1 §'
    47 ! !
    50 ! !