[squeak-dev] AST-Core for Pharo and Squeak?

Hernán Morales Durand hernan.morales at gmail.com
Sun Dec 6 02:08:08 UTC 2009


Hi guys,
  I've noticed a different behavior relating the RBParseTreeSearcher
between Pharo and Squeak, using AST-Core-lr.33, the following code:

| rbMethodNode |
rbMethodNode := RBParser parseMethod: 'test [  ]'.
( RBParseTreeSearcher new
	matches: '`{:node | node isVariable }'
	do:[: aNode : answer | answer add: aNode; yourself ] )
		executeTree: rbMethodNode initialAnswer: Set new.

gives an empty Set in Pharo-Core (#11072) and  a Set(RBSequenceNode())
in Squeak 3.10.2
Does anybody know if I should use a different AST-Core version for
Squeak? An alternative repository maybe?

Hernán



More information about the Squeak-dev mailing list