commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JEXL-127) Allow the creation of functions
Date Tue, 13 Mar 2012 15:20:41 GMT

    [ https://issues.apache.org/jira/browse/JEXL-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228432#comment-13228432
] 

Henri Biestro commented on JEXL-127:
------------------------------------

Reworked grammar to properly treat parenthesized expressions and calling chains;
Added 'anonymous/closure' style syntax to functions '(x, y)-> { ... }';
Made additive operations separate nodes / classes;
Renamed occurences of 'register' to symbol (Scope/Frame);
Code shuffling in Interpreter to have all complex methods located together (assign, call,
de-reference...);
Added syntactic detection of invalid assignment (left member must be left value);
Moved JexlEvalContext to test package (only use is testing);
Renamed 'UnifiedJEXLTest' to 'JXLTTest' to properly reflect new naming;
Added / completed a few tests;
Various checkstyle / Javadoc

Committed revision 1300178.

Sending       jexl3/trunk/pom.xml
Deleting      jexl3/trunk/src/main/java/org/apache/commons/jexl3/JexlEvalContext.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/internal/Debugger.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/internal/Engine.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/internal/Interpreter.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/internal/Scope.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/internal/introspection/Permissions.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/parser/ASTIdentifier.java
Adding        jexl3/trunk/src/main/java/org/apache/commons/jexl3/parser/ASTIdentifierAccess.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/parser/ASTJexlScript.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/parser/ASTReferenceExpression.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/parser/JexlNode.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/parser/JexlParser.java
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/parser/Parser.jjt
Sending       jexl3/trunk/src/main/java/org/apache/commons/jexl3/parser/ParserVisitor.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/ArrayAccessTest.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/AssignTest.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/CacheTest.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/ClassCreatorTest.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/IfTest.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/IssuesTest.java
Adding        jexl3/trunk/src/test/java/org/apache/commons/jexl3/JXLTTest.java
Adding        jexl3/trunk/src/test/java/org/apache/commons/jexl3/JexlEvalContext.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/JexlTest.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/LambdaTest.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/MethodTest.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/ScriptCallableTest.java
Deleting      jexl3/trunk/src/test/java/org/apache/commons/jexl3/UnifiedJEXLTest.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/VarTest.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/internal/Util.java
Sending       jexl3/trunk/src/test/java/org/apache/commons/jexl3/junit/Asserter.java



                
> Allow the creation of functions
> -------------------------------
>
>                 Key: JEXL-127
>                 URL: https://issues.apache.org/jira/browse/JEXL-127
>             Project: Commons JEXL
>          Issue Type: Improvement
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>             Fix For: 3.0
>
>
> As script get richer, being able to create functions is a strong need.
> This only requires adding a new keyword ('function') and the syntax would be: var fn
= function(x, y, z) {...}.
> It would be nice to allow those to behave as closures (thru local variable hoistering).
> This will bring JEXL closer to ECMAScript in functionality.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message