Re: Do you know how in the swf9 compiler...
P T Withington <ptw <at> pobox.com>
2009-11-02 15:46:43 GMT
Yeah, I am finding that. Digging into it.
André discovered that labeled statements don't work, and that has led
me down a rat hole about how the unparser unparses statements and
blocks. The parser is inserting all these extra levels of statements
that hold statements, and I am trying to simplify that, but our tree-
walkers are pretty fragile...
On 2009-11-02, at 10:34, Henry Minsky wrote:
> There was some hack for that, I remember setting up these constants
> to pass
> to the
> script compiler
> There's some code in the script compiler that sets and refers to
> config.mainClassName, which somehow the parsetreeprinter decides to
> things into, but I'm not sure how.
> public List makeTranslationUnits(SimpleNode translatedNode, boolean
> compress, boolean obfuscate)
> config.mainClassName = (String)
> //System.err.println("mainClassName = "+config.mainClassName);
> On Mon, Nov 2, 2009 at 7:37 AM, P T Withington <ptw <at> pobox.com> wrote:
>> It diverts the top-level statements from processing and inserts
>> them into
>> the main class? I can't seem to follow the logic.
> Henry Minsky
> Software Architect
> hminsky <at> laszlosystems.com