[Pkg] The Trunk: Compiler-nice.125.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Feb 25 01:50:32 UTC 2010


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

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

Name: Compiler-nice.125
Author: nice
Time: 25 February 2010, 2:50:32.978 am
UUID: 627a24a0-8e6d-1944-86f9-2a7ae9bf5216
Ancestors: Compiler-nice.124

Let Parser better signal NumberParser errors.

=============== Diff against Compiler-nice.124 ===============

Item was changed:
  ----- Method: Scanner>>xDigit (in category 'multi-character scans') -----
  xDigit
  	"Form a number."
  
  	tokenType := #number.
  	(aheadChar = 30 asCharacter and: [source atEnd
  			and:  [source skip: -1. source next ~= 30 asCharacter]])
  		ifTrue: [source skip: -1 "Read off the end last time"]
  		ifFalse: [source skip: -2].
+ 	token := (SqNumberParser on: source)
+ 		failBlock: [:errorString :position | self notify: errorString at:position];
+ 		nextNumber.
- 	token := [Number readSqueakSyntaxFrom: source] ifError: [:err :rcvr | self offEnd: err].
  	self step; step!



More information about the Packages mailing list