diff -r 48a6757d5f01 -r 6e0a8571dd88 PPTokenParser.st --- a/PPTokenParser.st Tue Mar 04 15:33:25 2014 +0100 +++ b/PPTokenParser.st Tue Mar 04 15:33:27 2014 +0100 @@ -8,6 +8,12 @@ ! +!PPTokenParser methodsFor:'*petitanalyzer-matching'! + +match: aParser inContext: aDictionary seen: anIdentitySet + ^ (super match: aParser inContext: aDictionary seen: anIdentitySet) and: [ self tokenClass = aParser tokenClass ] +! ! + !PPTokenParser methodsFor:'accessing'! tokenClass @@ -33,18 +39,23 @@ defaultTokenClass ^ PPToken +! + +on: aCollection start: aStartInteger stop: aStopInteger value: anObject + ^ self tokenClass on: aCollection start: aStartInteger stop: aStopInteger value: anObject ! ! !PPTokenParser class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPTokenParser.st,v 1.3 2012-05-04 22:00:04 vrany Exp $' + ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPTokenParser.st,v 1.4 2014-03-04 14:33:27 cg Exp $' ! version_CVS - ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPTokenParser.st,v 1.3 2012-05-04 22:00:04 vrany Exp $' + ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPTokenParser.st,v 1.4 2014-03-04 14:33:27 cg Exp $' ! version_SVN - ^ '§Id: PPTokenParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '$Id: PPTokenParser.st,v 1.4 2014-03-04 14:33:27 cg Exp $' ! ! +