mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-03 00:18:20 +00:00
Add TODO items
This commit is contained in:
parent
1747028211
commit
6af4f40752
1 changed files with 5 additions and 1 deletions
|
@ -331,6 +331,10 @@ class optimizer(object):
|
||||||
expr = self.symtab[code[3]][code[2]][2]
|
expr = self.symtab[code[3]][code[2]][2]
|
||||||
if expr is not None:
|
if expr is not None:
|
||||||
self.FoldTree(expr)
|
self.FoldTree(expr)
|
||||||
|
# TODO: Remove assignment if default
|
||||||
|
else:
|
||||||
|
# TODO: Add assignment if ZERO_VECTOR, ZERO_ROTATION or FLOAT.
|
||||||
|
pass
|
||||||
return
|
return
|
||||||
|
|
||||||
if code0 in ('V++','V--','--V','++V',';'):
|
if code0 in ('V++','V--','--V','++V',';'):
|
||||||
|
@ -345,7 +349,7 @@ class optimizer(object):
|
||||||
del self.globalmode
|
del self.globalmode
|
||||||
|
|
||||||
def optimize(self, symtab, functions):
|
def optimize(self, symtab, functions):
|
||||||
"""Optimize the symbolic table symtab in place. Uses a table of
|
"""Optimize the symbolic table symtab in place. Requires a table of
|
||||||
predefined functions for folding constants.
|
predefined functions for folding constants.
|
||||||
"""
|
"""
|
||||||
self.functions = functions
|
self.functions = functions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue