KLL Compiler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

none.py 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #!/usr/bin/env python3
  2. '''
  3. KLL Data Dropper (Doesn't emit anything)
  4. '''
  5. # Copyright (C) 2016 by Jacob Alexander
  6. #
  7. # This file is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # This file is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this file. If not, see <http://www.gnu.org/licenses/>.
  19. ### Imports ###
  20. from common.emitter import Emitter
  21. ### Decorators ###
  22. ## Print Decorator Variables
  23. ERROR = '\033[5;1;31mERROR\033[0m:'
  24. WARNING = '\033[5;1;33mWARNING\033[0m:'
  25. ### Classes ###
  26. class Drop( Emitter ):
  27. '''
  28. Doesn't emit at all, just ignores everything
  29. '''
  30. def __init__( self, control ):
  31. '''
  32. Emitter initialization
  33. @param control: ControlStage object, used to access data from other stages
  34. '''
  35. Emitter.__init__( self, control )
  36. def command_line_args( self, args ):
  37. '''
  38. Group parser for command line arguments
  39. @param args: Name space of processed arguments
  40. '''
  41. def command_line_flags( self, parser ):
  42. '''
  43. Group parser for command line options
  44. @param parser: argparse setup object
  45. '''
  46. def output( self ):
  47. '''
  48. Final Stage of Emitter
  49. Nothing to do
  50. '''
  51. def process( self ):
  52. '''
  53. Emitter Processing
  54. Nothing to do, just dropping all the results
  55. '''