/src/tools/interpreter/builtins/liberty_interpreter_external_type_real_80_builtins.e
http://github.com/tybor/Liberty · Specman e · 51 lines · 30 code · 7 blank · 14 comment · 0 complexity · 411e4fd5eee4177ac2e4107d74d26ad4 MD5 · raw file
- -- This file is part of Liberty Eiffel.
- --
- -- Liberty Eiffel 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 3 of the License.
- --
- -- Liberty Eiffel 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 Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>.
- --
- class LIBERTY_INTERPRETER_EXTERNAL_TYPE_REAL_80_BUILTINS
- inherit
- LIBERTY_INTERPRETER_EXTERNAL_TYPE_REALS_BUILTINS[REAL_80]
- creation {LIBERTY_INTERPRETER_EXTERNAL_BUILTIN_CALL}
- make
- feature {}
- new_real (value: REAL_80): LIBERTY_INTERPRETER_OBJECT_NATIVE[REAL_128] is
- do
- Result := interpreter.new_real_80(value, builtin_call.position)
- end
- left, target: REAL_80 is
- local
- obj: LIBERTY_INTERPRETER_OBJECT_NATIVE[REAL_128]
- do
- obj ::= builtin_call.target
- Result := obj.item
- end
- right: REAL_80 is
- local
- obj: LIBERTY_INTERPRETER_OBJECT_NATIVE[REAL_128]
- do
- builtin_call.evaluate_parameters
- obj ::= builtin_call.parameters.first
- Result := obj.item
- end
- call_specific (f: LIBERTY_FEATURE) is
- do
- last_call_failed := True
- end
- end -- class LIBERTY_INTERPRETER_EXTERNAL_TYPE_REAL_80_BUILTINS