Eiffel
外觀
這是此頁批准,以及是最近的修訂。
Eiffel是一套物件導向程式語言,一九八五年由伯特蘭 ・ 邁呢所發明。文法類似 Pascal,而且共語言本身佮軟體的工程、佮工具做伙結合做一个。Eiffel 實現契約式設計(Design by Contract)的風格。
語法佮語義
規个架構
一个 Eiffel「系統」抑是「程序」是講一个「類」的集合。Eiffel 系統有一个 Cluster 的概念。通過一个叫做 ACE 外部組件描述類之間的組合關係的,Cluster 會當是幾个仔,抑是幾若个子 Cluster,抑是𪜶的混合。猶毋過 Cluster 毋是呢 Eiffel 的語言構造,Eiffel 語言內底,類是惟一的構造模塊。
" Hello , world ! "
一支程式語言攏會有 " Hello , world ! " 的程式碼。以 Eiffel 彼个表示猶毋過:
這支程式有類 ` HELLO _ WORLD `。其建構例程的名稱是 ` make `,伊會哀叫 ` print ` 系統函式庫例程將 ` " Hello , ` ` world ! " ` 的訊息予輸出。 Eiffel 中無成 C 系列(C、C + +、Java、C #)的語言,通過約束某一个叫做 main 的函數來啟動應用,是通過 ACE 來指定一个類似規个應用的啟動。這个類的構造函數嘛就成做應用的起始點。
引用
外部連結
- Basic Eiffel Language Mechanisms , Bertrand Meyer , August 二千空六 .
- Eiffel Software's Open Source initiative
- Eiffel Software web site of the company that introduced Eiffel , was Interactive Software Engineering ( ISE ) .
- Eiffel tutorial ( 一百 pages ) by Bertrand Meyer(HTML , PDF)
- Eiffel standard , revision 二 ( 二千空六 ) ; this is the ECMA standard , with free access , its text identical to that of the ISO standard .
- SmartEiffel ( formerly SmallEiffel ) a complete Eiffel compiler released under GNU GPL license , translates Eiffel code either to C or Java bytecode , not standard compliant , with emphasis on performance .
- " The Eiffel Compiler " ( tecomp ) an open source Eiffel compiler with documentation .
- Visual Eiffel an open source implementation of Eiffel creating native code for X 八十六 systems(Windows , Linux)
- NICE Nonprofit International Consortium for Eiffel .
- eiffelroom . com Community around standard Eiffel .
- eiffelzone . com Includes a comprehensive Eiffel Software Directory
- Cetus Eiffel Page
- Eiffel for . NET
- Eiffel : the Language subset