Ubercode
Encyclopedia
Ubercode is a high level programming language
designed by Ubercode Software and released in 2005 for Microsoft Windows. Ubercode is influenced by the Eiffel
and BASIC
. It has the following design goals:
and postcondition
s. In the example, the IntToStr function validates its input as a string before converting it to an integer:
Programming language
A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms precisely....
designed by Ubercode Software and released in 2005 for Microsoft Windows. Ubercode is influenced by the Eiffel
Eiffel (programming language)
Eiffel is an ISO-standardized, object-oriented programming language designed by Bertrand Meyer and Eiffel Software. The design of the language is closely connected with the Eiffel programming method...
and BASIC
BASIC
BASIC is a family of general-purpose, high-level programming languages whose design philosophy emphasizes ease of use - the name is an acronym from Beginner's All-purpose Symbolic Instruction Code....
. It 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 EiffelEiffel (programming language)Eiffel is an ISO-standardized, object-oriented programming language designed by Bertrand Meyer and Eiffel Software. The design of the language is closely connected with the Eiffel programming method...
. - 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:
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-Precondition
In computer programming, a precondition is a condition or predicate that must always be true just prior to the execution of some section of code or before an operation in a formal specification....
and postcondition
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 within the code itself...
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://www.ubercode.com/ - Ubercode Software
- http://www.ubercode.com/forum - Ubercode Community Forum
- Language report - PDF copy of Language Reference Manual
- http://isbndb.com/d/book/design_of_very_high_level_computer_languages.html - VHLL principles