X-Git-Url: https://git.donarmstrong.com/?p=kiibohd-kll.git;a=blobdiff_plain;f=kll.py;h=21c4418fbca37b2062aa5cbcc0880f9f7b6e5590;hp=ca91da01cac80f109640cc415ec44efe2779d12d;hb=81231a708e4a530c4877284ea13fbe2c3d120c99;hpb=a005ad49ad33f6f000066ee225474da31ac6d5d1 diff --git a/kll.py b/kll.py index ca91da0..21c4418 100755 --- a/kll.py +++ b/kll.py @@ -423,7 +423,7 @@ def eval_usbCode( triggers, operator, results ): elif operator == ":": macros_map.replaceScanCode( scanCode, result ) - #print ( triggers ) + print ( triggers ) print ( results ) def eval_variable( name, content ): @@ -541,12 +541,17 @@ if __name__ == '__main__': print ( pformat( tokenSequence ) ) # Display tokenization tree = parse( tokenSequence ) #print ( tree ) - print ( variable_dict ) - print ( capabilities_dict ) + #print ( variable_dict ) + #print ( capabilities_dict ) + + # Do macro correlation and transformation + macros_map.generate() + + # Process needed templating variables using backend + backend.process( capabilities_dict, macros_map ) - # TODO Move - #macros_map.usbCodeToCapability( backend.usbCodeCapability() ) - backend.process( capabilities_dict ) + # Generate output file using template and backend + backend.generate( output ) # Successful Execution sys.exit( 0 )