Author: dda
Date: 2007-12-13 13:42:41 -0800 (Thu, 13 Dec 2007)
New Revision: 7534
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java
Log:
Change 20071213-dda-R by [EMAIL PROTECTED] on 2007-12-13 11:10:37 EST
in /Users/dda/laszlo/src/svn/openlaszlo/branches/devildog
for http://svn.openlaszlo.org/openlaszlo/branches/devildog
Summary: SWF9: precedence fix for 'in'
New Features: none
Bugs Fixed:
Technical Reviewer: ptw (pending)
QA Reviewer: hminsky (pending)
Doc Reviewer: (pending)
Documentation: none
Release Notes: none
Details:
The SWF9 third party compiler has a precedence bug.
This is a quick workaround for that. The right workaround would be to
push the fix into the SWF9ParseTreePrinter. That fix is in progress,
but SWF9 development is eagerly awaiting something that works in the
meantime.
Tests:
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java
===================================================================
---
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java
2007-12-13 21:23:00 UTC (rev 7533)
+++
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java
2007-12-13 21:42:41 UTC (rev 7534)
@@ -528,10 +528,12 @@
{"*", "/", "%"},
{"+", "-"},
{"<<", ">>", ">>>"},
- {"<", "<=", ">", ">=", "instanceof", "in"},
+ // TODO: [2007-12-13 dda] "in" moved below to compensate for SWF9 3rd
party compiler precedence bug.
+ //{"<", "<=", ">", ">=", "instanceof", "in"},
+ {"<", "<=", ">", ">=", "instanceof"},
{"==", "!=", "===", "!=="},
{"&"}, {"^"}, {"|"}, {"&&"}, {"||"}, {"?", ":"},
- {"=", "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=", "^=",
"|="},
+ {"in", "=", "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=",
"^=", "|="},
{","}};
for (int i = (unary ? 0 : 2), il = classes.length; i < il; i++) {
for (int j = 0, jl = classes[i].length; j < jl; j++) {
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins