The Trunk: Compiler-nice.125.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Compiler-nice.125.mcz

commits-2
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!