Commit 0c4aa50a authored by Tom Zhao's avatar Tom Zhao
Browse files

xz1919: hotfix: fixed import statement in Utils.java

parent 08aa9615
......@@ -39,6 +39,7 @@ assign_lhs : IDENT #Ident
| array_elem #LHSArrayElem // This visitor will be replaced by visitArray_elem()
| pair_elem #LHSPairElem // This visitor will be replaced by visitors in pair_elem
| struct_elem #LHSStructElem // This visitor will be replaced by visitors in struct_elem
;
for_stat : skp #ForStatSkp // This visitor will be replaced by #SkipStat
| declare #ForStatDeclare // This visitor will be replaced by #DeclareStat
......
......@@ -3,6 +3,7 @@ package optimize;
import frontend.node.FuncNode;
import frontend.node.Node;
import frontend.node.ProgramNode;
import frontend.node.StructDeclareNode;
import frontend.node.expr.*;
import frontend.node.stat.*;
import utils.NodeVisitor;
......@@ -252,4 +253,40 @@ public class ConstantPropagation implements NodeVisitor<Node> {
}
return params;
}
@Override
public Node visitStructElemNode(StructElemNode node) {
// TODO Auto-generated method stub
return null;
}
@Override
public Node visitStructNode(StructNode node) {
// TODO Auto-generated method stub
return null;
}
@Override
public Node visitStructDeclareNode(StructDeclareNode node) {
// TODO Auto-generated method stub
return null;
}
@Override
public Node visitForNode(ForNode node) {
// TODO Auto-generated method stub
return null;
}
@Override
public Node visitJumpNode(JumpNode node) {
// TODO Auto-generated method stub
return null;
}
@Override
public Node visitSwitchNode(SwitchNode node) {
// TODO Auto-generated method stub
return null;
}
}
......@@ -8,7 +8,17 @@ import frontend.type.ArrayType;
import frontend.type.BasicType;
import frontend.type.BasicTypeEnum;
import frontend.type.PairType;
import frontend.type.StructType;
import frontend.type.Type;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.function.BiFunction;
import java.util.function.BinaryOperator;
import java.util.function.Function;
import org.antlr.v4.runtime.ParserRuleContext;
import utils.frontend.SemanticErrorHandler;
import utils.frontend.symbolTable.Symbol;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment