[BUG][FIX] Temp declarations get inserted into literals

Bob Arning arning at charm.net
Mon Jun 21 17:52:27 UTC 1999


Leandro,

This seems to fix the problem.

Cheers,
Bob

'From Squeak 2.3 of January 14, 1999 on 21 June 1999 at 1:47:10 pm'!

!Parser methodsFor: 'expression types' stamp: 'RAA 6/21/1999 13:46'!
temporaries
	" [ '|' (variable)* '|' ]"
	| vars theActualText |
	(self match: #verticalBar)
		ifFalse: 
			["no temps"
			tempsMark _ prevMark + prevToken.
			theActualText _ source contents.
			[tempsMark < theActualText size and: [(theActualText at: tempsMark) isSeparator]]
				whileTrue: [tempsMark _ tempsMark + 1].
			^ #()].
	vars _ OrderedCollection new.
	[hereType == #word]
		whileTrue: [vars addLast: (encoder bindTemp: self advance)].
	(self match: #verticalBar)
		ifTrue: 
			[tempsMark _ prevMark.
			^ vars].
	^ self expected: 'Vertical bar'! !





More information about the Squeak-dev mailing list