Change 20080207-hqm-a by [EMAIL PROTECTED] on
2008-02-07 01:35:03 EST
in /Users/hqm/openlaszlo/devildog
for http://svn.openlaszlo.org/openlaszlo/branches/devildog
Summary: a debugger eval implementation
New Features:
Bugs Fixed:
Technical Reviewer: dda
QA Reviewer: ptw
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
To eval an expression, a new class is compiled, whose constructor
executes the expression, and
prints the value to a crude text field console.
The new class is named DebugEvaluate, and it is a subclass of a stub
base class named DebugExec, which
just defines a console print method for now.
I modified SWF9Generator to emit the DebugEvaluate class instead of
LzApplication, when the new
debugEval flag is passed in.
Tests:
hello.lzx, or any app. Type an expression in the pink input field, and
see output in gray area
Files:
M test/swf9/hello.lzx
M WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
M WEB-INF/lps/lfc/kernel/swf9/Library.lzs
M WEB-INF/lps/lfc/views/LaszloCanvas.js
M WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
M WEB-INF/lps/server/src/org/openlaszlo/sc/Compiler.java
M WEB-INF/lps/server/src/org/openlaszlo/servlets/responders/
ResponderEVAL.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/
CompilationEnvironment.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080207-hqm-a.tar