Ubercode
Encyclopedia
Ubercode is a high level programming language
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:
  1. Compilable language - compiled into Windows EXE files.
  2. Automatic memory management - memory is allocated / freed automatically, and the language has no memory management primitives.
  3. Pre and post conditions - these are run-time assertions which are attached to function declarations, as in 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...

    .
  4. High-level data types - resizable arrays, lists and tables may contain arbitrary components.
  5. Integrated file handling - primitives for transparent handling of text, binary, CSV, XML and dBase files.
  6. 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
  • http://isbndb.com/d/book/design_of_very_high_level_computer_languages.html - VHLL principles
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK