+ def process( self, capabilities, macros, variables ):
+ ## Information ##
+ # TODO
+ self.fill_dict['Information'] = "// This file was generated by the kll compiler, DO NOT EDIT.\n"
+ self.fill_dict['Information'] += "// Generation Date: {0}\n".format( "TODO" )
+ self.fill_dict['Information'] += "// Compiler arguments: {0}\n".format( "TODO" )
+ self.fill_dict['Information'] += "// KLL Backend: {0}\n".format( "kiibohd" )
+ self.fill_dict['Information'] += "// KLL Git Rev: {0}\n".format( "TODO" )
+ self.fill_dict['Information'] += "//\n"
+ self.fill_dict['Information'] += "// - Base Layer -\n"
+ self.fill_dict['Information'] += "// - Default Layer -\n"
+ self.fill_dict['Information'] += "// - Partial Layers -\n"
+
+
+ ## Variable Information ##
+ self.fill_dict['VariableInformation'] = ""
+
+ # Iterate through the variables, output, and indicate the last file that modified it's value
+ # Output separate tables per file, per table and overall
+ # TODO
+
+
+ ## Defines ##
+ self.fill_dict['Defines'] = ""
+
+ # Iterate through defines and lookup the variables
+ for define in variables.defines.keys():
+ if define in variables.overallVariables.keys():
+ self.fill_dict['Defines'] += "\n#define {0} {1}".format( variables.defines[ define ], variables.overallVariables[ define ] )
+ else:
+ print( "{0} '{1}' not defined...".format( WARNING, define ) )
+
+