public bool VerifyDeclarationNode(DeclarationNode dnode, Environment env) { type t = TypeNodeToType(dnode.t, env); env.Add(dnode.name, t); return(true); }
public void VisitDeclarationNode(DeclarationNode node) { foreach (VariableIdNode idNode in node.IDsToDeclare) { idNode.Accept(this); } node.DeclarationType.Accept(this); }
public void Visit(DeclarationNode declaration) { // Declarations only have semantic meaning; no instructions are needed }
public void Visit(DeclarationNode declaration) { }
public String Print(DeclarationNode dnode) { return(Print(dnode.t) + " " + dnode.name); }
public void VisitDeclarationNode(DeclarationNode node) { }