/tutorial/ace/example2.ace

http://github.com/tybor/Liberty · Unknown · 70 lines · 61 code · 9 blank · 0 comment · 0 complexity · 6e1894a0575114a8e309b01465fc36dd MD5 · raw file

  1. -- To launch the compilation with this file, just type:
  2. --
  3. -- compile example2.ace
  4. --
  5. -- This second example contains more constructs and options available to ACE
  6. -- files.
  7. --
  8. -- In this example, classes are compiled with different levels of assertions
  9. -- checking. Most "pure" Eiffel project should be handled this way.
  10. --
  11. -- Also note that the -verbose option flag is compatible with the ACE file
  12. -- mode, hence the following command is also allowed:
  13. --
  14. -- compile -verbose example2.ace
  15. --
  16. system
  17. -- The name for the executable
  18. "pyramid"
  19. root
  20. -- To indicate that the execution will start in procedure `make' of class
  21. -- PYRAMID
  22. PYRAMID: make
  23. default
  24. assertion (loop)
  25. -- To select the default assertion level to be verified
  26. -- Try to change this "loop" keyword for example.
  27. collect (yes)
  28. -- To include or to exclude the Garbage Collector
  29. -- Yes or No is a valid answer here.
  30. cluster
  31. demos_cluster: "${path_tutorial}"
  32. -- The description of the first cluster starts with its name just
  33. -- followed by the path of the directory
  34. -- The ${path_tutorial} variable is set in the configuration file
  35. -- (liberty.se)
  36. end
  37. standard : "${path_liberty_core}/string"
  38. -- The string cluster
  39. default
  40. assertion (require)
  41. option
  42. assertion (ensure): STRING
  43. -- To override the previously defined level for some classes of
  44. -- this cluster
  45. end
  46. basic_io : "${path_liberty_core}/io/basic"
  47. -- The basic io cluster
  48. default
  49. assertion (ensure)
  50. option
  51. assertion (require): STD_INPUT
  52. -- To override the previously defined level for some classes of
  53. -- this cluster
  54. end
  55. standard: "${path_liberty_core}/loadpath.se"
  56. -- Liberty Eiffel's standard library. Always put this last so that you
  57. -- can override options for parts of the library.
  58. default
  59. assertion (ensure)
  60. end
  61. end