[squeak-dev] The Trunk: Compiler-eem.234.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Oct 8 20:44:50 UTC 2012

Eliot Miranda uploaded a new version of Compiler to project The Trunk:

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

Name: Compiler-eem.234
Author: eem
Time: 8 October 2012, 1:44:27.162 pm
UUID: 1e69e4f6-4808-439b-b63d-2fc309ee87d0
Ancestors: Compiler-eem.233

More accurate error reporting for incomplete brace expressions

=============== Diff against Compiler-eem.233 ===============

Item was changed:
  ----- Method: Parser>>braceExpression (in category 'expression types') -----
  	" { elements } => BraceNode."
  	| elements locations loc more |
  	elements := OrderedCollection new.
  	locations := OrderedCollection new.
  	self advance.
  	more := hereType ~~ #rightBrace.
  			[loc := hereMark + requestorOffset.
  			self expression
  					[elements addLast: parseNode.
  					locations addLast: loc]
+ 					[^self expected: 'Variable or expression or right brace'].
- 					[^self expected: 'Variable or expression'].
  			(self match: #period)
  				ifTrue: [more := hereType ~~ #rightBrace]
  				ifFalse: [more := false]].
  	parseNode := BraceNode new elements: elements sourceLocations: locations.
  	(self match: #rightBrace)
  		ifFalse: [^self expected: 'Period or right brace'].

More information about the Squeak-dev mailing list