commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jexl/src/java/org/apache/commons/jexl/parser Parser.jjt
Date Fri, 07 Jun 2002 03:34:42 GMT
geirm       2002/06/06 20:34:42

  Modified:    jexl/src/java/org/apache/commons/jexl/parser Parser.jjt
  Log:
  support for [][]
  
  Revision  Changes    Path
  1.5       +8 -2      jakarta-commons-sandbox/jexl/src/java/org/apache/commons/jexl/parser/Parser.jjt
  
  Index: Parser.jjt
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jexl/src/java/org/apache/commons/jexl/parser/Parser.jjt,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Parser.jjt	7 Jun 2002 03:03:51 -0000	1.4
  +++ Parser.jjt	7 Jun 2002 03:34:42 -0000	1.5
  @@ -56,7 +56,7 @@
    *  Jexl : Java Expression Language
    *
    *  @author <a href="mailto:geirm@apache.org">Geir Magnusson Jr.</a>
  - *  @version $Id: Parser.jjt,v 1.4 2002/06/07 03:03:51 geirm Exp $
  + *  @version $Id: Parser.jjt,v 1.5 2002/06/07 03:34:42 geirm Exp $
    */
   
   options
  @@ -451,7 +451,13 @@
   void Reference() : {}
   {
     (LOOKAHEAD(Identifier() "[" ( Expression() | IntegerLiteral() | Reference()) "]") ArrayAccess()
| Identifier())
  -  (LOOKAHEAD(2) "." (LOOKAHEAD(3) Method() | Identifier() | IntegerLiteral() ))*
  +  (LOOKAHEAD(2) "."
  +    (
  +      LOOKAHEAD(Identifier() "[" ( Expression() | IntegerLiteral() | Reference()) "]")
ArrayAccess() |
  +      (LOOKAHEAD(3) Method() | Identifier() |  IntegerLiteral() )
  +
  +    )
  +  )*
   }
   
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message