/tutorial/triangle/version1/example1.e

http://github.com/tybor/Liberty · Specman e · 22 lines · 15 code · 3 blank · 4 comment · 0 complexity · 8241d6a479a561510d8d3cf5040ecb6e MD5 · raw file

  1. class EXAMPLE1
  2. -- To execute this example with the Liberty Eiffel debugger,
  3. -- compile with:
  4. -- compile -sedb example1
  5. create {ANY}
  6. main
  7. feature {ANY}
  8. main
  9. local
  10. p1, p2: POINT
  11. do
  12. create p1
  13. create p2
  14. p1.translate(1.0, 2.0)
  15. p2.translate(3.0, 4.0)
  16. sedb_breakpoint
  17. -- To stop here just before exit.
  18. end
  19. end -- class EXAMPLE1