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

            env.Add(dnode.name, t);
            return(true);
        }
Exemplo n.º 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
 }
Exemplo n.º 4
0
 public void Visit(DeclarationNode declaration)
 {
 }
Exemplo n.º 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)
 {
 }
Exemplo n.º 8
0
 public void VisitDeclarationNode(DeclarationNode node)
 {
 }