4 def __init__(self, fn):
9 self.file = open(fn, "w")
12 def make(self, kwd, *params):
19 return "%s%s"%(kwd, pstr)
21 def write(self, kwd, *params):
22 self.file.write("%s%s;\n"%('\t'*self.indent, self.make(kwd, *params)))
24 def begin(self, kwd, *params):
26 self.file.write("%s%s\n%s{\n"%(i, self.make(kwd, *params), i))
31 self.file.write("%s};\n"%('\t'*self.indent))
35 if isinstance(f, OutFile):