note description: "Constant class for IL operators" legal: "See notice at end of class." status: "See notice at end of class." author: "" date: "$Date$" revision: "$Revision$" class IL_CONST feature -- Property valid_type_kind (i: INTEGER): BOOLEAN -- Is `i' on of the following values `il_i1', `il_i2', `il_i4', `il_i8', -- `il_r4', `il_r8', `il_ref'? do Result := i = il_i1 or i = il_i2 or i = il_i4 or i = il_i8 or i = il_r4 or i = il_r8 or i = il_ref end feature -- Constants for binary expression -- Comparisons operators on numeric and characters. Il_lt: INTEGER = 0 Il_le: INTEGER = 1 Il_gt: INTEGER = 2 Il_ge: INTEGER = 3 -- Numeric operators. Il_star: INTEGER = 4 Il_slash: INTEGER = 5 Il_power: INTEGER = 6 Il_plus: INTEGER = 7 Il_mod: INTEGER = 8 Il_minus: INTEGER = 9 Il_div: INTEGER = 10 -- Boolean comparisons operators. Il_xor: INTEGER = 11 Il_or: INTEGER = 12 Il_and: INTEGER = 13 -- Equality operators. Il_ne: INTEGER = 14 Il_eq: INTEGER = 15 -- Shifting operator Il_shl: INTEGER = 20 Il_shr: INTEGER = 21 feature -- Constants for unary expression Il_uplus: INTEGER = 16 Il_not: INTEGER = 17 Il_uminus: INTEGER = 18 Il_old: INTEGER = 19 Il_bitwise_not: INTEGER = 22 feature -- Constants for variable kind il_i1: INTEGER = 30 il_i2: INTEGER = 31 il_i4: INTEGER = 32 il_i8: INTEGER = 33 il_r4: INTEGER = 34 il_r8: INTEGER = 35 il_ref: INTEGER = 36 il_i: INTEGER = 37 il_u1: INTEGER = 38 il_u2: INTEGER = 39 il_u4: INTEGER = 40 il_u8: INTEGER = 41 il_expanded: INTEGER = 42 feature -- Constants for comparison il_min: INTEGER = 43 il_max: INTEGER = 44 il_three_way_comparison: INTEGER = 45 ;note copyright: "Copyright (c) 1984-2010, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class IL_CONST