768 /* the data type resulting from this operation... */ |
768 /* the data type resulting from this operation... */ |
769 this->default_variable_name.current_type = this->current_operand_type; |
769 this->default_variable_name.current_type = this->current_operand_type; |
770 return NULL; |
770 return NULL; |
771 } |
771 } |
772 |
772 |
|
773 void *visit(AND_operator_c *symbol) { |
|
774 if (search_expression_type->is_binary_type(this->default_variable_name.current_type) && |
|
775 search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { |
|
776 BYTE_operator_result_type(); |
|
777 } |
|
778 else {ERROR;} |
|
779 return NULL; |
|
780 } |
|
781 |
|
782 void *visit(OR_operator_c *symbol) { |
|
783 if (search_expression_type->is_binary_type(this->default_variable_name.current_type) && |
|
784 search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { |
|
785 BYTE_operator_result_type(); |
|
786 } |
|
787 else {ERROR;} |
|
788 return NULL; |
|
789 } |
|
790 |
|
791 void *visit(XOR_operator_c *symbol) { |
|
792 if (search_expression_type->is_binary_type(this->default_variable_name.current_type) && |
|
793 search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { |
|
794 BYTE_operator_result_type(); |
|
795 } |
|
796 else {ERROR;} |
|
797 return NULL; |
|
798 } |
|
799 |
|
800 void *visit(ANDN_operator_c *symbol) { |
|
801 if (search_expression_type->is_binary_type(this->default_variable_name.current_type) && |
|
802 search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { |
|
803 BYTE_operator_result_type(); |
|
804 } |
|
805 else {ERROR;} |
|
806 return NULL; |
|
807 } |
|
808 |
|
809 void *visit(ORN_operator_c *symbol) { |
|
810 if (search_expression_type->is_binary_type(this->default_variable_name.current_type) && |
|
811 search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { |
|
812 BYTE_operator_result_type(); |
|
813 } |
|
814 else {ERROR;} |
|
815 return NULL; |
|
816 } |
|
817 |
|
818 void *visit(XORN_operator_c *symbol) { |
|
819 if (search_expression_type->is_binary_type(this->default_variable_name.current_type) && |
|
820 search_expression_type->is_same_type(this->default_variable_name.current_type, this->current_operand_type)) { |
|
821 BYTE_operator_result_type(); |
|
822 } |
|
823 else {ERROR;} |
|
824 return NULL; |
|
825 } |
|
826 |
773 void *visit(ADD_operator_c *symbol) { |
827 void *visit(ADD_operator_c *symbol) { |
774 if (search_expression_type->is_time_type(this->default_variable_name.current_type) && |
828 if (search_expression_type->is_time_type(this->default_variable_name.current_type) && |
775 search_expression_type->is_time_type(this->current_operand_type)) { |
829 search_expression_type->is_time_type(this->current_operand_type)) { |
776 /* the data type resulting from this operation... */ |
830 /* the data type resulting from this operation... */ |
777 this->default_variable_name.current_type = this->current_operand_type; |
831 this->default_variable_name.current_type = this->current_operand_type; |