[squeak-dev] The Trunk: Compiler-nice.100.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Dec 1 14:44:56 UTC 2009


Nicolas Cellier uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-nice.100.mcz

==================== Summary ====================

Name: Compiler-nice.100
Author: nice
Time: 1 December 2009, 3:45:36 am
UUID: 03472bb2-f89b-b040-ae9b-4e07e714b59b
Ancestors: Compiler-nice.99

Let token be ':=' when := is used for assignment.
This used to make some Decompiler tests fail...
http://code.google.com/p/pharo/issues/detail?id=740

=============== Diff against Compiler-nice.99 ===============

Item was changed:
  ----- Method: Scanner>>xColon (in category 'multi-character scans') -----
+ xColon
+ 	"Allow := for assignment"
+ 	
- xColon		"Allow := for assignment by converting to #_ "
  	aheadChar = $= ifTrue:
  		[self step.
+ 		tokenType := #leftArrow.
- 		tokenType _ #leftArrow.
  		self step.
+ 		^ token := #':='].
- 		^ token _ #'_'].
  	"Otherwise, just do what normal scan of colon would do"
+ 	tokenType := #colon.
+ 	^ token := self step asSymbol!
- 	tokenType _ #colon.
- 	^ token _ self step asSymbol!




More information about the Squeak-dev mailing list