4 def __init__(self, fn):
8 self.file = open(fn, "w")
11 def make(self, kwd, *params):
18 return "%s%s"%(kwd, pstr)
20 def write(self, kwd, *params):
21 self.file.write("%s%s;\n"%('\t'*self.indent, self.make(kwd, *params)))
23 def begin(self, kwd, *params):
25 self.file.write("%s%s\n%s{\n"%(i, self.make(kwd, *params), i))
30 self.file.write("%s};\n"%('\t'*self.indent))