Hi Yoshiki,<div><br></div><div> what's the image you're using, or at least what is it derived from? Also, what's the result of (OMeta2 >> #token) symbolic ?<br><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 3:09 PM, Yoshiki Ohshima <span dir="ltr"><<a href="mailto:Yoshiki.Ohshima@acm.org">Yoshiki.Ohshima@acm.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I noticed that when I debug grammar written in OMeta2/Squeak, there is<br>
a problem with some particular methods. For example, I load<br>
OMeta2-preload and -postload, and do:<br>
<br>
(OMeta2 compiledMethodAt: #token) decompileWithTemps<br>
<br>
I get something like:<br>
------------------------------------<br>
token<br>
| t |<br>
^ true<br>
ifTrue: [_r1 := self apply: #anything.<br>
self apply: #spaces.<br>
self apply: #seq withArgs: {_r1}]<br>
------------------------------------<br>
Debugger uses this to obtain the source code and then it trys to parse<br>
it to get the source map. But "_r1" is not a valid variable name so<br>
this process fails.<br>
<br>
It appears that the underscore is originated from the method:<br>
------------------------------------<br>
codeRemoteTemp: index remoteTemps: tempVector<br>
<br>
^(RemoteTempVectorNode new<br>
name: '_r', index printString<br>
index: index<br>
type: LdTempType<br>
scope: 0)<br>
remoteTemps: tempVector;<br>
yourself<br>
------------------------------------<br>
But I cannot tell why it is "leaking out" to the final result. Does<br>
anybody know what is going on?<br>
<font color="#888888"><br>
-- Yoshiki<br>
<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>
</div>