[Laszlo-dev] For Review: Change 20071212-dda-n Summary: SWF9 changes to get LzNode to build

Donald Anderson dda at ddanderson.com
Thu Dec 13 06:28:28 PST 2007


I thought I had imagined that once, as well.  But then I looked at  
the grammar
and overview documents for es4, and it's clear that both '!' and '?'  
must appear
after any type identifier.  So I changed our grammar (on a previous  
commit to trunk).
This commit fixes the Type.toString() to be the same.

If you happen upon the var : !type  syntax somewhere, let me know,
I could swear I got that from somewhere.

On Dec 12, 2007, at 5:16 PM, P T Withington wrote:

> Approved.
>
> One question:  Did I imagine it, or does the non-nullable type have  
> to be written with the exclamation at the front?
>
> On 2007-12-12, at 16:55 EST, Donald Anderson wrote:
>
>> Change 20071212-dda-n by dda at freddie.local on 2007-12-12 16:28:59 EST
>>    in /Users/dda/laszlo/src/svn/openlaszlo/branches/devildog
>>    for http://svn.openlaszlo.org/openlaszlo/branches/devildog
>>
>> Summary: SWF9 changes to get LzNode to build
>>
>> New Features: none
>>
>> Bugs Fixed: LPP-5234
>>
>> Technical Reviewer: ptw (pending)
>> QA Reviewer: hminsky (pending)
>> Doc Reviewer: (pending)
>>
>> Documentation: none
>>
>> Release Notes: none
>>
>> Details:
>>    Changes to get buildlfc (using just LzNode) to complete:
>>
>> +  program variables -- those vars that are declared outside
>>    of any method or class, are now treated as globals, going
>>    into their own file.  Since some names use $ (like $swf9),
>>    they must be in file $varname.as, and we now take care to show  
>> these
>>    on debug output as \$varname.as on Unix to make it easier to cut
>>    and paste.  We do not do this escape for the command line handed
>>    to the system, I don't believe this is necessary.
>>
>> +  with the new handling of program variables, removed the implicit
>>    'with (lzApplicationInstance)' that was being inserted.
>>
>> +  more debugging - each /tmp/lzswf9/* directory now has three new  
>> debug
>>    files: source.txt, program.txt, progdump.txt showing various views
>>    of the program at different stages of processing.  This is very
>>    helpful for debugging.  At the current time, they are conditional
>>    on a DEBUG_OUTPUT variable in SWF9Generator, this will probably  
>> change
>>    to a command line option.
>>
>> +  added -debug=true option to compile command line, this is also  
>> controlled
>>    by a class variable, and should be a command line option  
>> eventually.
>>
>> Tests:
>>  Only running buildlfc in devildog
>>
>> Files:
>> M      WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
>> M      WEB-INF/lps/server/src/org/openlaszlo/sc/CommonGenerator.java
>> M      WEB-INF/lps/server/src/org/openlaszlo/sc/Compiler.java
>> M      WEB-INF/lps/server/src/org/openlaszlo/sc/Translator.java
>> M      WEB-INF/lps/server/sc/src/org/openlaszlo/sc/parser/ 
>> ASTIdentifier.java
>>
>> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071212- 
>> dda-n.tar
>>
>>
>>
>> --
>>
>> Don Anderson
>> Java/C/C++, Berkeley DB, systems consultant
>>
>> Voice:  617-547-7881
>> Email:  dda at ddanderson.com
>> WWW:    http://www.ddanderson.com
>>
>


--

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

Voice:  617-547-7881
Email:  dda at ddanderson.com
WWW:    http://www.ddanderson.com



More information about the Laszlo-dev mailing list