[metaas-dev] SyntaxException: Unexpected token SUPER
Sergey Akopkokhyants
akserg at gmail.com
Tue Oct 30 13:15:56 UTC 2007
Hi, there.
Here I put some information from FlexBuilder help:
http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001634.html
.
SuperExpression from
http://livedocs.adobe.com/specs/actionscript/3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=as3_specification129.htmlmean
to use "f" as function name in "
super.f(a,b,c)" but if you invoke super class constructor from you
constructor you invoke super(a,b,c).
If I use old lib:
· jaxmejs-0.5.2.jar,
· metaas-0.7.jar,
· antlr-2.7.6.jar,
· stringtemplate-2.3b9.jar,
· antlr-20070101.jar
I've got next result:
*package framework.control{*
* import com.adobe.cairngorm.control.CairngormEvent;*
* /***
* * Event comment*
* */*
* [Bindable]*
* public class SetInformationEvent extends CairngormEvent {*
* public var name:String;*
* public var count:Number;*
* public var amount:Number;*
* public function SetInformationEvent(name:String,
count:Number, amount:Number) {*
* super(
ApplicationController.EVENT_SET_INFORMATION);*
* this.name = name;*
* this.count = count;*
* this.amount = amount;*
* }*
* }*
*}*
This class compiled without any problem in FlexBuilder and mxmlc.exe.
CairngormEvent got next source:
*package com.adobe.cairngorm.control*
*{*
* import flash.events.Event;*
* *
* /***
* * The CairngormEvent class is mandatory for Cairngorm event
dispatching. *
* * It is used to differentiate Cairngorm events *
* * from events raised by the underlying Flex framework (or*
* * similar).*
* * <p>For more information on how event dispatching works in Cairngorm,
*
* * please check with CairngormEventDispatcher.</p>*
* * <p>*
* * Events are typically broadcast as the result of a user gesture
occuring*
* * in the application, such as a button click, a menu selection, a
double*
* * click, a drag and drop operation, etc. *
* * </p>*
* **
* * @see com.adobe.cairngorm.control.CairngormEventDispatcher*
* */*
* public class CairngormEvent extends Event*
* {*
* /***
* * The data property can be used to hold information to be passed
with the event*
* * in cases where the developer does not want to extend the
CairngormEvent class.*
* * However, it is recommended that specific classes are created for
each type*
* * of event to be dispatched.*
* */*
* public var data : *;*
* *
* /***
* * Constructor, takes the event name (type) and data object (defaults
to null)*
* * and also defaults the standard Flex event properties bubbles and
cancelable*
* * to true and false respectively.*
* */*
* public function CairngormEvent( type : String, bubbles : Boolean =
false, cancelable : Boolean = false )*
* {*
* super( type, bubbles, cancelable );*
* }*
* }*
*}*
But if I use new lib:
· antlr-05-14-2007.17.jar
· antlr-2.7.7.jar
· jaxmejs-0.5.2.jar
· metaas-0.8-SNAPSHOT.jar
· stringtemplate-3.0.jar
Result: *Generate exception*.
Sergey,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071030/196ef3b5/attachment-0001.htm
More information about the metaas-dev
mailing list