Changeset 1827


Ignore:
Timestamp:
Dec 29, 2005, 6:08:01 AM (15 years ago)
Author:
orlov
Message:
  • Fixed creation of expression from parentheses.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/java/org/refal/plus/Expr.java

    r1822 r1827  
    5555     */
    5656    public Expr(Expr e, int i) {
    57         this(((Expr)e.expr[e.index + i]).expr);
     57        Expr d = (Expr)e.expr[e.index + i];
     58        index = d.index;
     59        length = d.length;
     60        expr = d.expr;
    5861    }
    5962
     
    260263
    261264    /**
     265     * Creates expression from a subarray of an array of Objects
     266     *
     267     * @param arr --
     268     *            Object[]
     269     */
     270    public Expr(Object[] arr, int i, int len) {
     271        length = len;
     272        expr = arr;
     273        index = i;
     274    }
     275
     276    /**
    262277     * Returns the contents of the expr.
    263278     */
Note: See TracChangeset for help on using the changeset viewer.