Lines Matching refs:self
31 def __init__(self, slicc, type_ast, pairs, states):
32 super(StateDeclAST, self).__init__(slicc, pairs)
34 self.type_ast = type_ast
35 self.states = states
37 def __repr__(self):
38 return "[StateDecl: %s]" % (self.type_ast)
40 def files(self, parent=None):
41 if "external" in self:
45 ident = "%s_%s" % (parent, self.type_ast.ident)
47 ident = self.type_ast.ident
51 def generate(self):
52 ident = str(self.type_ast)
55 t = Type(self.symtab, ident, self.location, self.pairs,
56 self.state_machine)
57 self.symtab.newSymbol(t)
60 for state in self.states:
67 func = Func(self.symtab, func_id + "_" +
68 t.ident, func_id, self.location,
69 self.symtab.find("std::string", Type), [ t ], [], "",
71 self.symtab.newSymbol(func)
77 func = Func(self.symtab, func_id + "_" +
78 t.ident, func_id, self.location,
79 self.symtab.find("AccessPermission", Type), [ t ], [], "",
81 self.symtab.newSymbol(func)