Author: dda
Date: 2007-12-19 11:13:55 -0800 (Wed, 19 Dec 2007)
New Revision: 7616

Modified:
   
openlaszlo/branches/devildog/WEB-INF/lps/server/sc/src/org/openlaszlo/sc/Parser.jjt
Log:
Change 20071219-dda-L by [EMAIL PROTECTED] on 2007-12-19 14:07:59 EST
    in /Users/dda/laszlo/src/svn/openlaszlo/branches/devildog
    for http://svn.openlaszlo.org/openlaszlo/branches/devildog

Summary: Add recognition of 'const' keyword

New Features: const is recognized as a synonym for var in a declaration

Bugs Fixed: LPP-5234

Technical Reviewer: ptw (pending)
QA Reviewer: hminsky (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    Added const in grammar, we don't do anything with it just yet,
    so left a TODO for that.

Tests:
    Compiled Instance.js, which uses a 'const'.
    Verified that 'const' is translated to a 'var'.



Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/server/sc/src/org/openlaszlo/sc/Parser.jjt
===================================================================
--- 
openlaszlo/branches/devildog/WEB-INF/lps/server/sc/src/org/openlaszlo/sc/Parser.jjt
 2007-12-19 19:13:00 UTC (rev 7615)
+++ 
openlaszlo/branches/devildog/WEB-INF/lps/server/sc/src/org/openlaszlo/sc/Parser.jjt
 2007-12-19 19:13:55 UTC (rev 7616)
@@ -647,7 +647,8 @@
 
 void VariableStatement() #VariableStatement : {}
 {
-    "var" VariableDeclarationList() Sc()
+    // TODO: [2007-12-19 dda] pass const info through
+    ( "var" | "const" ) VariableDeclarationList() Sc()
 }
 
 void VariableDeclarationList() #VariableDeclarationList(>1) : {}


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to