public override void Visit(StructDcl n) { if (!KeyValExists(n.id)) { AST.SymbolTable.Add(GetKeyVal(n.id), AST.STRUCT); } else { error("variable " + n.id + " is already declared"); } }
public override void Visit(StructDcl n) { n.type = AST.STRUCT; }
public override void Visit(StructDcl n) { emit($"struct {n.id} "); }
public override void Visit(StructDcl n) { }