[Laszlo-dev] error when compiling compiler/LzFormatter.lzs (it's a mixin)
P T Withington
ptwithy at gmail.com
Thu Mar 6 03:11:24 PST 2008
Inner functions are definitely allowed, so we need to fix.
On Mar 5, 2008, at 20:58, Donald Anderson <dda at ddanderson.com> wrote:
> 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
>> hminsky at laszlosystems.com
>>
>
>
> --
>
> Don Anderson
> Java/C/C++, Berkeley DB, systems consultant
>
> voice: 617-547-7881
> email: dda at ddanderson.com
> www: http://www.ddanderson.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080306/ee97d2f5/attachment.html
More information about the Laszlo-dev
mailing list