Top 1,000 Features Creators Resources Extensions Blog Explorer CSV Download
GitHub icon


< >

Eiffel is a programming language created in 1986 by Bertrand Meyer.

#164on PLDB 38Years Old 913Repos
Download source code:
git clone

Eiffel is an object-oriented programming language designed by Bertrand Meyer (an object-orientation proponent and author of Object-Oriented Software Construction) and Eiffel Software. Meyer conceived the language in 1985 with the goal of increasing the reliability of commercial software development; the first version becoming available in 1986. In 2005, Eiffel became an ISO-standardized language. Read more on Wikipedia...

Example from hello-world:
indexing "Hello World in Eiffel , from" class HELLO creation run feature run is local io : BASIC_IO; do !!io; io.put_string("Hello World"); io.put_newline end; -- run end; -- class HELLO
note "Hello World in Eiffel" class HELLO create run feature run do print ("Hello World!%N") end end
Example from Linguist:
note description: "Git checkout command." author: "Olivier Ligot" class GIT_CHECKOUT_COMMAND inherit GIT_COMMAND create make, make_master feature {NONE} -- Initialization make (a_branch: STRING) -- Checkout the branch `a_branch'. do initialize arguments.force_last (a_branch) branch := a_branch ensure branch_set: branch = a_branch end make_master -- Checkout the master branch. do make ("master") end feature -- Access branch: STRING -- Branch to checkout name: STRING = "checkout" -- Git subcommand name end
Example from Wikipedia:
class HELLO_WORLD create make feature make do print ("Hello, world!") end end

Language features

Feature Supported Token Example
Binary Literals โœ“
-- 0[bB][01]+
Integers โœ“
-- [0-9]+
Floats โœ“
-- ([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)
Hexadecimals โœ“
-- 0[xX][a-fA-F0-9]+
Octals โœ“
-- 0[cC][0-7]+
Strings โœ“ "
"Hello world"
Assignment โœ“ :=
Case Insensitive Identifiers โœ“
Line Comments โœ“ --
-- A comment
Operator Overloading โœ“
Multiple Inheritance โœ“
Comments โœ“
Pointers โœ“
Semantic Indentation X
MultiLine Comments X

View source

- Build the next great programming language ยท About ยท Acknowledgements ยท Part of the World Wide Scroll