Refactor to allow sub-namespace declaration

This commit is contained in:
Siu Kwan Lam 2013-02-08 16:03:29 -06:00
commit 7c39bd1f5b
13 changed files with 264 additions and 197 deletions

View file

@ -4,6 +4,12 @@ NULL = 'NULL'
_symbols = set()
def wrap_println_from_file(file):
def println(s=''):
file.write(s)
file.write('\n')
return println
def indent(println):
def _println(s=''):
println("%s%s" % (' '* 4, s))