[squeak-dev] AST-Core for Pharo and Squeak?
Lukas Renggli
renggli at gmail.com
Sun Dec 6 09:20:42 UTC 2009
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 at 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 at 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
More information about the Squeak-dev
mailing list
|