Lines Matching refs:self
32 def __init__(self, slicc, type_ast, pairs, field_asts):
33 super(TypeDeclAST, self).__init__(slicc, pairs)
35 self.type_ast = type_ast
36 self.field_asts = field_asts
38 def __repr__(self):
39 return "[TypeDecl: %r]" % (self.type_ast)
41 def files(self, parent=None):
42 if "external" in self:
46 ident = "%s_%s" % (parent, self.type_ast.ident)
48 ident = self.type_ast.ident
51 def generate(self):
52 ident = str(self.type_ast)
53 machine = self.symtab.state_machine
56 new_type = Type(self.symtab, ident, self.location, self.pairs,
57 self.state_machine)
62 self.symtab.newSymbol(new_type)
63 self.symtab.pushFrame()
66 for field in self.field_asts:
69 self.symtab.popFrame()