OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var.pod versions 1.9 and 1.10
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var.pod 1.9 -> 1.10

--- var.pod      2001/12/03 10:51:27     1.9
+++ var.pod      2001/12/04 13:37:55     1.10
@@ -618,7 +618,7 @@
 
  variable   : '$' (name|expression)
 
- expression : START-DELIM (name|variable)+ (':' command)* END-DELIM
+ expression : START-DELIM (name|variable)+ (START-INDEX num-exp END-INDEX)? (':' command)* END-DELIM
 
  name       : (VARNAME)+
 
@@ -633,10 +633,23 @@
             | 'l'
             | 'u'
 
+ num-exp    : operand
+            | operand ('+'|'-'|'*'|'/'|'%') num-exp
+
+ operand    : ('+'|'-')? NUMBER
+            | CURR-INDEX
+            | '(' num-exp ')'
+
  START-DELIM: '{'
 
  END-DELIM  : '}'
 
+ START-INDEX: '['
+
+ END-INDEX  : ']'
+
+ CURR-INDEX : '#'
+
  VARNAME    : '[a-zA-Z0-9_]+'
 
  NUMBER     : '[0-9]+'

CVSTrac 2.0.1