Change bargull-20110415-O7o by bargull@Bargull02 on 2011-04-15 18:30:51
in /home/anba/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Literal regular expression support (sort of)

New Features: LPP-6872 (Support literal RegExp notation) (partial)

Technical Reviewer: ptw,dda
QA Reviewer: (pending)

Release Notes:

Overview:


Details:
I'm still not sure this works out entirely, but maybe someone else can give some ideas how to tackle this issue.


Parser.jjt:
- literal regular expression support by forcing the token manager to switch the lexical state

ASTLiteral.java:
- implementation for setRegexpValue()

RegExp.java:
- simple class to hold pattern and flags of a regular expression

JavascriptGenerator.java:
- ES5 to ES3 bwcompat code

SWF9Generator.java:
- AS3 doesn't need ES5 to ES3 bwcompat mode


Tests:
TBD

Files:
M WEB-INF/lps/server/src/org/openlaszlo/sc/JavascriptGenerator.java
M WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
M WEB-INF/lps/server/sc/src/org/openlaszlo/sc/Parser.jjt
M WEB-INF/lps/server/sc/src/org/openlaszlo/sc/parser/ASTLiteral.java
A WEB-INF/lps/server/sc/src/org/openlaszlo/sc/parser/RegExp.java

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/bargull-20110415-O7o.tar

Reply via email to