/src/tools/interpreter/liberty_interpreter_open_argument.e

http://github.com/tybor/Liberty · Specman e · 115 lines · 82 code · 19 blank · 14 comment · 0 complexity · d11d0de0b24808c54a53c5b5d2973ab2 MD5 · raw file

  1. -- This file is part of Liberty Eiffel.
  2. --
  3. -- Liberty Eiffel is free software: you can redistribute it and/or modify
  4. -- it under the terms of the GNU General Public License as published by
  5. -- the Free Software Foundation, version 3 of the License.
  6. --
  7. -- Liberty Eiffel is distributed in the hope that it will be useful,
  8. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. -- GNU General Public License for more details.
  11. --
  12. -- You should have received a copy of the GNU General Public License
  13. -- along with Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>.
  14. --
  15. class LIBERTY_INTERPRETER_OPEN_ARGUMENT
  16. inherit
  17. LIBERTY_INTERPRETER_OBJECT
  18. redefine
  19. is_open
  20. end
  21. create {LIBERTY_INTERPRETER_EXPRESSIONS}
  22. make
  23. feature {ANY}
  24. is_open: BOOLEAN is True
  25. is_equal (other: LIBERTY_INTERPRETER_OBJECT): BOOLEAN is
  26. do
  27. Result := other = Current
  28. end
  29. converted_to (target_type: LIBERTY_ACTUAL_TYPE): LIBERTY_INTERPRETER_OBJECT is
  30. do
  31. not_yet_implemented
  32. end
  33. type: LIBERTY_ACTUAL_TYPE
  34. hash_code: INTEGER is
  35. do
  36. Result := to_pointer.hash_code
  37. end
  38. feature {LIBERTY_INTERPRETER_EXTERNAL_TYPE_ANY_BUILTINS} -- Standard builtings
  39. builtin_is_equal (other: LIBERTY_INTERPRETER_OBJECT; a_position: LIBERTY_POSITION): BOOLEAN is
  40. do
  41. not_yet_implemented
  42. end
  43. builtin_standard_is_equal (other: LIBERTY_INTERPRETER_OBJECT; a_position: LIBERTY_POSITION): BOOLEAN is
  44. do
  45. not_yet_implemented
  46. end
  47. builtin_copy (other: LIBERTY_INTERPRETER_OBJECT; a_position: LIBERTY_POSITION) is
  48. do
  49. not_yet_implemented
  50. end
  51. builtin_twin (a_position: LIBERTY_POSITION): like Current is
  52. do
  53. not_yet_implemented
  54. end
  55. builtin_standard_copy (other: LIBERTY_INTERPRETER_OBJECT; a_position: LIBERTY_POSITION) is
  56. do
  57. not_yet_implemented
  58. end
  59. builtin_standard_twin (a_position: LIBERTY_POSITION): like Current is
  60. do
  61. not_yet_implemented
  62. end
  63. feature {LIBERTY_INTERPRETER_OBJECT}
  64. do_deep_twin (deep_twin_memory: DICTIONARY[LIBERTY_INTERPRETER_OBJECT, LIBERTY_INTERPRETER_OBJECT]; a_position: LIBERTY_POSITION): LIBERTY_INTERPRETER_OBJECT is
  65. do
  66. not_yet_implemented
  67. end
  68. do_deep_equal (object: LIBERTY_INTERPRETER_OBJECT; deep_equal_memory: SET[LIBERTY_INTERPRETER_OBJECT]; a_position: LIBERTY_POSITION): BOOLEAN is
  69. do
  70. not_yet_implemented
  71. end
  72. feature {LIBERTY_INTERPRETER_OBJECT_PRINTER, LIBERTY_INTERPRETER_FEATURE_CALL}
  73. show_stack (o: OUTPUT_STREAM; indent: INTEGER) is
  74. do
  75. o.put_character('{')
  76. o.put_string(type.full_name)
  77. o.put_character('}')
  78. end
  79. feature {}
  80. expanded_twin: like Current is
  81. do
  82. not_yet_implemented
  83. end
  84. feature {}
  85. make (a_interpreter: like interpreter; a_type: like type) is
  86. require
  87. a_interpreter /= Void
  88. a_type /= Void
  89. do
  90. interpreter := a_interpreter
  91. type := a_type
  92. ensure
  93. interpreter = a_interpreter
  94. type = a_type
  95. end
  96. end -- class LIBERTY_INTERPRETER_OPEN_ARGUMENT