Refactor to allow sub-namespace declaration
This commit is contained in:
parent
fe383ca326
commit
7c39bd1f5b
13 changed files with 264 additions and 197 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue