incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik de Bruin <e...@ixsoftware.nl>
Subject Re: [FalconJx] It's early, but does it cross compile?
Date Thu, 20 Dec 2012 11:45:31 GMT
Ok, got it working, I see the AS output (in a .js file, lol)

Noob question: what are "terminal and leaf nodes"? I don't mean in
your implementation specifically, but what I should think about when
trying to wrap my head around the task at hand?

I'm OK with working whatever direction you want me to (bottom up, top
down), I'm a blank slate, for you to train (I don't have much Java
experience, but I copy-paste like a Boss ;-)

EdB


On Thu, Dec 20, 2012 at 12:18 PM, Michael Schmalle
<apache@teotigraphix.com> wrote:
>
> Quoting Erik de Bruin <erik@ixsoftware.nl>:
>
>> Mike,
>>
>> Got all 5 "Falcon" projects from SVN. I build Falcon and FalconJS
>> using ant on the command line (as per their respective READMEs). I've
>> loaded the 'compiler[.xx]' projects into Eclipse (Indigo on OS X).
>> Fixed some paths to get rid of the initial errors.
>
>
> Sounds good.
>
>
>>
>> I was able to successfully run all 148 tests in 'compiler.jx.tests'
>> and those all passed (with 2 ignored?).
>
>
> Yes! This is golden for you, it means you are setup to create more tests
> with me! Right now we are only using the Falcon compiler to get IFileNodes.
>
>
>>
>> I then created a Debug Configuration on 'compiler.jx', pointing it to
>> "org.apache.flex.compiler.clients.MXMLJSC" as the 'Main class' (I am
>> not very familiar with Java, but some tweaking and Googling seemed to
>> indicate this was what might work). On the 'Arguments' tab I just
>> entered "./tests/TestApp.as". Hitting "Debug" got me the error I
>> mentioned.
>
>
> Yeah, almost there but, there are a couple things missing. You will be able
> to do this but will need to send a -load-config="my/pat/flex-config.xml flag
> along with -library-path pointing to the playerglobal.swc
>
> I did the following and it created the js file;
>
> -library-path=C:\Users\Work\Documents\libraries\dependencies\player\11.1\playerglobal.swc
> tests/TestApp.as
>
> The above in the compiler args for the run target.
>
> Remember, this is spitting out actions script right now, I have got to the
> class/interface and package logic with emitting!
>
> With the above it spit out MainCode.js;
>
>
> public var foo:Stringprivate var bar:int = 0 function MainCode() {
> }public function get baz():String {
> }public function set baz(value:String):void {
> }
>
> As you can see this is right with a couple missing semicolons, class and
> package block.
>
> Ask more questions about "what you want to test", I'll tell you how to do
> it.
>
> Mike
>
>
>
>
>> How did I do?
>>
>> EdB
>
>
>
>
>>
>>
>> On Thu, Dec 20, 2012 at 11:50 AM, Michael Schmalle
>> <apache@teotigraphix.com> wrote:
>>>
>>> Hey,
>>>
>>> No, at the moment it's "not" compiling js perse'. The whole development
>>> is
>>> focused on the unit tests.
>>>
>>> If you really want to get into the project, study the unit tests. I
>>> haven't
>>> brought the emitter up to the class/interface level. So using the
>>> compileJS() will give you weird output.
>>>
>>> "Missing builtin type Object"
>>>
>>> Means the playerglobal.SWC is not being load in the compiler.
>>>
>>> How are you actually trying to run it?
>>>
>>> BTW, First try running the unit tests and tell me if you have problems.
>>>
>>> Mike
>>>
>>>
>>>
>>>
>>> Quoting Erik de Bruin <erik@ixsoftware.nl>:
>>>
>>>> Hi (Mike),
>>>>
>>>> I've been thinking about AS -> JS a bit and I wanted to try some
>>>> stuff... I downloaded the FalconJx code from Mike's whiteboard and
>>>> tried to get it to compile some AS to JS for me. The best I could get
>>>> it to output was this error: "Missing builtin type Object" in
>>>> Eclipse's Console :-)
>>>>
>>>> Is there any way that I can make this work, so I can play with it and
>>>> get a better feel for what's possible and more importantly, what is
>>>> needed?
>>>>
>>>> Thanks!
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>>
>>>
>>> --
>>> Michael Schmalle - Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>> http://blog.teotigraphix.com
>>>
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>>
>
> --
> Michael Schmalle - Teoti Graphix, LLC
> http://www.teotigraphix.com
> http://blog.teotigraphix.com
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Mime
View raw message