Hi! I am interested how to use Opal for parsing peace of code. I have supposed to use something like this:
| root node1 node2 |
root := OpalCompiler new
source: 'Color blue yourself';
useFaultyForParsing: true;
parse.
root doSemanticAnalysis.
node1 := root bestNodeFor: (2 to: 2).
node2 := root bestNodeFor: (7 to: 7).
But node1 is a RBMethodNode, and node2 is a RBVariableNode.
Does it matter if source for OpalCompiler is peace of code or method source?
Thank you,
Jura
