X-Git-Url: https://code.kerkeslager.com/?p=fur;a=blobdiff_plain;f=transformation.py;h=34710bf7c631f5684c84b33898b5a3ef245dacff;hp=0249890e4e9bac2b968c0a8359b57fe45c1d01ab;hb=d8074eb09891a048fd1960ae69697f02360a7b2c;hpb=51b6cd6152e6311805b55e847ae9eb60f5c7c471 diff --git a/transformation.py b/transformation.py index 0249890..34710bf 100644 --- a/transformation.py +++ b/transformation.py @@ -65,6 +65,7 @@ CFunctionCallExpression = collections.namedtuple( ], ) +# TODO We are currently not changing variables, just preventing them from being accessed. CSymbolAssignmentStatement = collections.namedtuple( 'CSymbolAssignmentStatement', [ @@ -121,6 +122,8 @@ CFunctionDeclaration = collections.namedtuple( ], ) +# TODO If a function definition doesn't end with an expression, we have issues currently because we try to return statement. +# TODO Closures currently wrap entire defining environment, even symbols that are not used, which makes garbage collection ineffective. CFunctionDefinition = collections.namedtuple( 'CFunctionDefinition', [