Changeset 2396


Ignore:
Timestamp:
Sep 25, 2012, 4:02:26 PM (6 years ago)
Author:
ksherdy
Message:

Added CarryCounter? visitor.

Location:
proto/pablo/src/compiler/visitors
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • proto/pablo/src/compiler/visitors/AdvanceCombiner.java

    r2394 r2396  
    11package compiler.visitors;
    2 
    3 import lexicalAnalyzer.LexicalType;
    4 import lexicalAnalyzer.Lextant;
    52
    63import tokens.*;
    74import ast.*;
    8 import compiler.visitors.*;
    95
    106public class AdvanceCombiner {
    117       
    128        public static void transform(ASTNode node) {
    13                 VoidVisitor visitor = new AdvanceCombinerVisitor();
     9            AdvanceCombinerVisitor visitor = new AdvanceCombinerVisitor();
    1410                node.accept(visitor);
    1511        }
     
    6359                return token.getValue();
    6460        }
    65         private static boolean isIntConstant(ASTNode node) {
    66                 return node instanceof IntegerConstantNode;
    67         }
     61
    6862               
    6963        ///////////////////////////////////////////////////////////////////
  • proto/pablo/src/compiler/visitors/StreamFunctionVisitor.java

    r2391 r2396  
    55import ast.*;
    66import java.util.*;
    7 import compiler.visitors.*;
    8 
    9 
    107
    118//class StreamFunctionVisitor(ast.NodeVisitor):
     
    2219       
    2320        public static Map<String, ASTNode> makeStreamFunctionMap(ASTNode node) {
    24                 VoidVisitor visitor = new StreamFunctionVisitor1();
     21            StreamFunctionVisitor1 visitor = new StreamFunctionVisitor1();
    2522                node.accept(visitor);
    2623                return ((StreamFunctionVisitor1)visitor).streamFunctionMap();
Note: See TracChangeset for help on using the changeset viewer.