Ubercode is a high level
programming language
A programming language is a system of notation for writing computer programs. Most programming languages are text-based formal languages, but they may also be graphical. They are a kind of computer language.
The description of a programming l ...
designed b
Ubercode Softwareand released in 2005 for
Microsoft Windows. Ubercode is influenced by
Eiffel
Eiffel may refer to:
Places
* Eiffel Peak, a summit in Alberta, Canada
* Champ de Mars – Tour Eiffel station, Paris, France; a transit station
Structures
* Eiffel Tower, in Paris, France, designed by Gustave Eiffel
* Eiffel Bridge, Ungheni, ...
and
BASIC
BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
. It is proprietary software and can be tried out for free for 30 days. Ubercode has the following design goals:
# ''Compilable language''—compiled into Windows EXE files.
# ''Automatic memory management''—memory is allocated / freed automatically, and the language has no memory management primitives.
# ''Pre and post conditions''—these are run-time assertions which are attached to function declarations, as in
Eiffel
Eiffel may refer to:
Places
* Eiffel Peak, a summit in Alberta, Canada
* Champ de Mars – Tour Eiffel station, Paris, France; a transit station
Structures
* Eiffel Tower, in Paris, France, designed by Gustave Eiffel
* Eiffel Bridge, Ungheni, ...
.
# ''High-level data types''—resizable arrays, lists and tables may contain arbitrary components.
# ''Integrated file handling''—primitives for transparent handling of text, binary, CSV, XML and dBase files.
# ''Ease of use''—language structure is relatively simple, making the language accessible to beginners.
Hello, World!
Here is the basic
"Hello, World!" program
A "Hello, World!" program is generally a computer program that ignores any input and outputs or displays a message similar to "Hello, World!". A small piece of code in most general-purpose programming languages, this program is used to illustr ...
:
Ubercode 1 class Hello
public function main()
code
call Msgbox("Hello", "Hello World!")
end function
end class
Preconditions and Postconditions
Here is an example using
pre- and
postcondition In computer programming, a postcondition is a condition or predicate that must always be true just after the execution of some section of code or after an operation in a formal specification. Postconditions are sometimes tested using assertions wit ...
s. In the example, the ''IntToStr'' function validates its input as a string before converting it to an integer:
Ubercode 1 class PrePost
function IntToStr(in mystr:string out value:integer)
precond IsDigitStr(mystr)
code
call Val(mystr, value)
end function
public function main()
code
call Msgbox("OOP example", "IntToStr(10) = " + IntToStr("10"))
end function
end class
External links
*
* http://isbndb.com/d/book/design_of_very_high_level_computer_languages.html (VHLL principles)
Object-oriented programming languages
{{Compu-lang-stub