Here's a pretty minimal test case that still fails:

mixin LzFormatter {
  function formatToString (control, args) {
    // ....
    function getarg(i) {
      // ....
    }
  }
};

One easy temp workaround out is probably to move the function outside
the other function (might need to pass extra params depending on
scoping of variables).

I assume this is something we claim to allow?  If so, I'll fix, it's
probably not too bad.

- Don

On Mar 5, 2008, at 8:37 PM, Henry Minsky wrote:

I added the file compiler/LzFormatter.lzs back into the LFC build for swf9, and it gives this compiler error
when trying to compile

lzl:
[echo] Compiling /Users/hqm/openlaszlo/devildog/lps/includes/ lfc/LFC9.swc [java] while compiling /Users/hqm/openlaszlo/devildog/WEB-INF/ lps/lfc/compiler/LzFormatter.lzs [java] while compiling /Users/hqm/openlaszlo/devildog/WEB-INF/ lps/lfc/compiler/Library.lzs [java] Exception compiling scriptfile: unexpected type at top level: ASTEmptyExpression [java] org.openlaszlo.sc.parser.ParseException: unexpected type at top level: ASTEmptyExpression [java] at org .openlaszlo .sc .parser .ASTModifiedDefinition.verifyTopLevel(ASTModifiedDefinition.java:125) [java] at org .openlaszlo .sc.SWF9Generator.visitModifiedDefinition(SWF9Generator.java:327) [java] at org .openlaszlo.sc.CommonGenerator.visitStatement(CommonGenerator.java: 795) [java] at org .openlaszlo.sc.CommonGenerator.visitStatement(CommonGenerator.java: 695)

I haven't tried to cut this down to a smaller test case yet, just wondering if there is something obviously wrong with
the syntax in the file...


--
Henry Minsky
Software Architect
[EMAIL PROTECTED]



--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-547-7881
email: [EMAIL PROTECTED]
www: http://www.ddanderson.com




Reply via email to