Did you run the tests, especially RBParserTest? They do all pass on Pharo. Does Squeak implement #isVariable on Object? Lukas 2009/12/6 Hernán Morales Durand <hernan.morales@gmail.com>:
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
-- Lukas Renggli http://www.lukas-renggli.ch 2009/12/6 Hernán Morales Durand <hernan.morales@gmail.com>:
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
-- Lukas Renggli http://www.lukas-renggli.ch