On 09 Jan 2014, at 07:51, Marcus Denker <marcus.denker@inria.fr> wrote:
On 09 Jan 2014, at 01:57, Nicolas Passerini <npasserini@gmail.com> wrote:
I am looking at the AST of a method like this:
someMethod ^ SomeClass new
It was a surprise to me that the note for 'SomeClass' is an RBVariableNode instead of a RBClassReference. Which is the best way to tell if an RBVariableNode represents a global reference or an instance variable?
Yes, is is a known bug. Camillo added that the Parser already specialises variables, but in the end, the code is quite complex *and* it mixes grammar related things with semantics.
So the idea is to move that into the sen check phase.
(the complexity shows by the fact that we just could not fix the bug⦠there is a reason why one should not mix pure syntax with semantics concerns)
https://pharo.fogbugz.com/f/cases/10916/RBParser-missparse-some-temporary-va... I will put it higher on my TODO list. Marcus