public bool VerifyDeclarationNode(DeclarationNode dnode, Environment env)
        {
            type t = TypeNodeToType(dnode.t, env);

            env.Add(dnode.name, t);
            return(true);
        }
예제 #2
0
        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
 }
예제 #4
0
 public void Visit(DeclarationNode declaration)
 {
 }
예제 #5
0
 public void Visit(DeclarationNode declaration)
 {
     // Declarations only have semantic meaning; no instructions are needed
 }
 public String Print(DeclarationNode dnode)
 {
     return(Print(dnode.t) + " " + dnode.name);
 }
 public void Visit(DeclarationNode declaration)
 {
 }
예제 #8
0
 public void VisitDeclarationNode(DeclarationNode node)
 {
 }