Changeset 3754 for devel-tools


Ignore:
Timestamp:
Apr 20, 2008, 4:20:09 PM (13 years ago)
Author:
yura
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.rfpdt.core/src/org/refal/rfpdt/compiler/RefalASGenerator.java

    r3619 r3754  
    7878        for (String str : qname)
    7979            concat.toRight(str);
    80         return new Expr(concat.yield());
     80        return Expr.create(concat.yield());
    8181    }
    8282
     
    9292        Expr.Concatenator concat = Expr.getConcatenator();
    9393        generator.visit(astImplem, concat);
    94         return new Expr(concat.yield());
     94        return Expr.create(concat.yield());
    9595    }
    9696
     
    217217    public void visit (AstCut astCut, Expr.Concatenator e) {
    218218        addLineNumber(astCut, e);
    219         e.toRight((Comparable<?>) new Expr(CUT));
     219        e.toRight((Comparable<?>) Expr.create(CUT));
    220220    }
    221221
    222222    public void visit (AstCutAll astCutAll, Expr.Concatenator e) {
    223223        addLineNumber(astCutAll, e);
    224         e.toRight((Comparable<?>) new Expr(CUTALL));
     224        e.toRight((Comparable<?>) Expr.create(CUTALL));
    225225    }
    226226
     
    235235    public void visit (AstFail astFail, Expr.Concatenator e) {
    236236        addLineNumber(astFail, e);
    237         e.toRight((Comparable<?>) new Expr(FAIL));
     237        e.toRight((Comparable<?>) Expr.create(FAIL));
    238238    }
    239239
    240240    public void visit (AstFence astFence, Expr.Concatenator e) {
    241241        addLineNumber(astFence, e);
    242         e.toRight((Comparable<?>) new Expr(FENCE));
     242        e.toRight((Comparable<?>) Expr.create(FENCE));
    243243    }
    244244
     
    358358        Comparable<?> varName;
    359359        if (astVar.name != null && astVar.name.identifier.length() > 0)
    360             varName = new Expr(astVar.name.identifier); // FIXME
     360            varName = Expr.create(astVar.name.identifier); // FIXME
    361361        else
    362             varName = new Expr("$tmp-" + astVar.pos.charStart); // FIXME
     362            varName = Expr.create("$tmp-" + astVar.pos.charStart); // FIXME
    363363        e.toRight((Comparable<?>) Expr.concat(varType, varName));
    364364    }
Note: See TracChangeset for help on using the changeset viewer.