There are some older design documents around which I will try to dig up for
you.

In a nutshell, though, here's a quick overview.

 There are basically two phases in the Interface Compiler (also called the
"tag compiler"):


+ The first phase processes all the <include> tags to collect all the source
code. Then it
scans for all <class> declarations, and builds a model in memory of the
class hierarchy, and
what the data types are for all the declared attributes.

+ The second phase is to walk over all tags which represent instances that
need to be instantiated (all elements named <view>, <node> and any
subclasses of those),
and emit javascript statements which are passed to the runtime. Attribute
values which declare constraints are
annotated so that the script compiler will  find and add constraint
dependencies for them.

The javascript which the tag compiler produces is mostly nested lists
containing all the information
needed to instantiate classes and views with their nested parent/child
nesting relationships.

The LFC runtime does a lot of work at applicaiton startup to assemble these
javascript lists
into the view and class hierarchy. However, as we move to support SWF9, we
are planning to make the tag compiler
do more work, to declare initialization functions  inside of real  ECMA4
style class declarations, which can be compiled
more efficiently, rather than passing all this information to be processed
by the runtime.








On Nov 26, 2007 12:14 PM, Timo Ernst <[EMAIL PROTECTED]> wrote:

> Hello there,
> I am currently writing a scientific paper about OpenLaszlo at the
> University of Ulm in Germany.
> In this paper, I want to focus on the transformation from LZX code to
> Flash/DHTML.
>
> More precisely, this means that I want to get a good understanding of
> how the Interface Compiler
> (http://www.openlaszlo.org/lps4/docs/developers/architecture.html#d0e412)
> works.
>
> So far, I haven't found much information about the OL compiler. Only the
> OL wiki offers something about the Script Compiler, but noch much:
> http://wiki.openlaszlo.org/Script_Compiler
>
> Does anyone know some ressources where this issue is described more in
> detail? Maybe some whitepaper that describes the compiler functionality?
>
> Further, does the book "OpenLaszlo in action" include detailed
> information on the architecture/compiler of OL?
> I don't want to buy it, unless I know that it's gonna help me.
>
> Thanks for your help in advance.
>
> Greetings from German,
> Timo Ernst
>
> http://www.timo-ernst.net
>



-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to