00001 #ifndef AST_ATTRIBUTE_COLOR_H_INCLUDED_ 00002 #define AST_ATTRIBUTE_COLOR_H_INCLUDED_ 00003 00004 #include "rose.h" 00005 00006 namespace risc 00007 { 00008 00009 namespace tools 00010 { 00011 00015 class AstAttributeColor: public AstAttribute { 00016 public: 00017 00018 // http://en.wikipedia.org/wiki/List_of_8-bit_computer_hardware_palettes 00019 enum Color { 00020 BLACK = 0, 00021 WHITE = 1, 00022 RED = 2, 00023 CYAN = 3, 00024 PURPLE = 4, 00025 GREEN = 5, 00026 BLUE = 6, 00027 YELLOW = 7, 00028 NO_COLOR = 255}; 00029 00030 // This are 'special' colors for the function call hierarchy 00031 enum CallHierarchy { 00032 IN_CALL_HIERARCHY = 100, 00033 NOT_IN_CALL_HIERARCHY = 101}; 00034 00035 Color color_; 00036 CallHierarchy call_hierarchy_; 00037 00041 AstAttributeColor(); 00042 00046 AstAttributeColor(Color color); 00047 }; 00048 00049 }; // end namespace tools 00050 00051 }; // end namespace risc 00052 00053 #endif /* AST_ATTRIBUTE_COLOR_H_INCLUDED_ */ 00054 00055 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */