Last change


Omikron Basic


General Features

Omikron Basic is a multipurpose programming language, which is easy to learn and allows even beginners to write their own programs after a short time.

For most projects, there is no need for internal knowledge of the Macintosh operating system.
Omikron Basic doesn't need complicated project definitions. Simply open a new code window and start to write your program.
Omikron Basic has short turnaround periods because you can test your programs immediately by using 'Compile & RUN' and/or 'Debug'

With 'Compile & RUN' programs can be tested immediately.

Omikron Basic generates compact PowerPC code as fast as greased lightening. Small programs remain small after compilation; the compiler can remove unused program parts automatically.
Omikron Basic allows modular programming by using procedures and functions.
Global and local variables enable recursive programming.
Multi-Window-Editing: One Program can be worked at in many different windows. You don´t need to scroll to and from anymore.
Programs without their own window management, using INPUT and PRINT for input and output, run cleanly in a multitasking environment as well due to the Omikron Basic output windows. This option is especially suitable for older programs or small tests since it is not necessary to program a graphical user interface in these cases.


The Comprehensive Instruction Set

Seven different data types (bit, byte, halfword, word, single float, double float, and strings up to 2 gigabytes in size).
Very fast operating string management (completely written in assembler language). Therefore strings do not need to be dimensioned. Effective use of memory is guaranteed.
Dimensioned arrays can be redimensioned while the program is running and can grow up to 2 gigabytes in size.
You can also use ASCII characters from 128 to 255 for variable names. Consequently it is possible to use special characters in your program such as Greek etc., provided that you have installed a suitable font.
Comprehensive drawing instructions (points, lines, squares, circles, ellipses.) All graphics commands as well as PRINT can be diverted to any graphics port. For instance, this allows you to use the same routine for your printer as well as for the output on your screen.
All important mathematical functions factorial of any real number, exponential functions, logarithmic functions with any basis, trigonometric functions from sine to hyperbolic area tangent.
Very fast string functions (LEFT$, RIGHT$, MID$, STR$, INSTR etc.)  written entirely in assembler. Matrices and determinant arithmetic. Mathematical and Boolean operators, bit shifting commands, pointers and address operators. Formatted output of numbers by using a USING string. Define your own input mask with 'INPUT USING'.
Very rapid sorting of arrays by using the SORT instruction, which has been completely written in assembler
FOR NEXT loops even with arbitrary floating point numbers for the counting variables as well as for the step rates.
Powerful flow control commands (IF...THEN...ELSE...ENDIF, FOR...NEXT, WHILE...WEND, REPEAT...UNTIL, SELECT...CASE...END_SELECT)
Integrate assembler code into your programs using INLINE, USR, CALL.
Many functions provided by the Macintosh operating system can be easily called by Omikron Basic. It is also possible to import functions from export libraries provided by other programming languages (C, Pascal, Fortran). Thus, Omikron Basic is prepared for the most complicated projects. (Even Omikron Basic itself has been programmed in Omikron Basic by using the EasyGem,  Extension, and Assembler Libraries)


The Integrated Editor

Syntax Checker: The tokenizing editor checks your syntax as you write. At the end of each  line, it immediately warns you if there is any type of syntax error.
Open Recent Function: Use this function to restore the last workspace. All windows and dialog boxes are at their old locations. This function can be executed already when the program starts.
Comprehensive edit functions (cut, paste, insert, move, copy blocks into other program windows or directly into other windows without routing through the clipboard) are now available. In addition to the usual standard functions such as cut, copy, paste, Omikron Basic also allows the direct and thus significantly faster moving or copying of token code.
Useful search and replace functions: search for tokens, text, definitions, and errors (forward and backward). You can let Omikron Basic open a new window to list all entries. With a mouse click on one of the entries, Omikron Basic scrolls to the specified location in your source code.
Program Comparison: Different program texts can be compared with one another. For example, if you changed a program and some error suddenly pops up, use this easy function to compare the text with an older and still properly functioning program. You quickly find all locations where you have made changes.
Symbol Table: All symbols as variables, functions, or procedures used in a program can be displayed clearly arranged in a window sorted by different criteria.
Automatic indention of structures (loops, IF...THEN...ELSE branches or subroutines).
" C o l o r C o d i n g ": Different token types are represented by different colors. Therefore your program becomes very clear as structure commands are displayed in a color that differs from that of operators or comments, etc. (This function can be switched off if you don't want it).

Color Coding: All colors and shortcuts can be customized.

For a better survey you can fold parts of your program. Only the first line of this hidden part can be seen which makes the program in the editor short and clear. Folded parts can also be inserted into one another and protected with a password.
High-speed compiler translating even large size programs in a few seconds, creating highly optimized, compact code.
All colors and shortcuts can be customized. Your individualized workspace is immediately available after program start since you can customize the default settings for the dialog boxes as well.
Multi-Window Editing: Display as many program sections as desired of one and the same program in individual windows. Your changes are automatically applied to all windows at once.

The integrated Source Code Debugger
The debugger may be used to run through your program in single steps while monitoring the content of variables and memory cells as well as being able to step into and step out of procedures and functions. There is also an animation mode, which may be used to run a program in something akin to slow-motion. The debugger is thus best suited to find errors and for didactic purposes to clarify, e.g., the working of algorithms step by step.

Execute the program step-by-step (red triangle) or run it to the next breakpoint (green oval).


Libraries extend the instruction set for special requirements. A library is a collection of procedures and functions which occupy only one single line of your program source.
You can easily make your own libraries with the Library Maker and distribute them. Users of your libraries will have no access to your source code.
Berkhan-Software does not claim any copyrights on programs built with Omikron Basic and the libraries.
With EasyGem Library you can give your program a graphical environment. Just insert a suitable command into your source code. It isn't necessary to deal with a separate resource file.
Complex Library allows you to calculate using complex numbers and provides all important mathematical functions. In addition, all zeros of complex polynomials and path integrals can be calculated in the complex plane.
Numeric Library
contains procedures for Fourier transformations and for solving differential equations and systems of equations.
Statistic Library offers functions for testing distribution and confidence intervals, simple and multiple regression, and variance analysis.


MacDirectory: The First And Only Macintosh Search Engine

© 1997-2009 Berkhan-Software
Berkhan-Software, Alt-Isenhagen 21, D-29386 Hankensbuettel, Germany
Tel: ++49 / (0) 58 32 / 97 98 95 Fax: ++49 / (0) 58 32 / 61 60 -

Apple and Apple Power Mac are registered trademarks of Apple Computer Inc.