1.INTRODUCTION

Welcome to OOJASIC.
OOJASIC stands for Object-Oriented Hybrid of Java and BASIC.
All OOJASIC code is compiled to Java Byte Code, and hence, OOJASIC is FULLY COMPATIBLE with other Java classes. This means that all OOJASIC programs can use Java classes, and vice versa.


2.PREREQUISITES

Before you can compile OOJASIC classes to Java Byte Code, you MUST HAVE JDK(Java Development Kit) installed on your PC.
If you do not have JDK installed, you can download it for free from Oracle's site. Just Google it up.


3.GETTING STARTED

If you have ANY programming knowledge at all, you can start coding in OOJASIC at once. The things you need to know are given below:-

Basic Syntax:

Declaring Variables: There are no primitive datatypes in OOJASIC. Every variable is initialised as an object of the 'var' class provided in myAPI. The syntax for declaring variables is-decvar a, b, c
Giving Values To Variables:
  • set a as 3
  • set b as "Hello!"
  • set c as true

  • Using Variables: Every variable can hold three types of values: numerics, text, and boolean(true/false). This is how you can access these properties:
  • a.num: Gives the numeric value of the variable. The default value is 0.
  • a.txt: Gives the textual value of the variable. The default value is "".
  • a.bool: Gives the boolean(true/false) value of the varaiable. The default value is false.

  • 4.KNOWN ISSUES

  • Threading not supported
  • Exception Handling not yet supported
  • No built in 'integer' type
  • 'Window' class in myAPI clashes with 'Window' class of awt

  • ->You can overcome the integer problem by typecasting the '.num' property of the variable. For example: (int)a.num would return the integer value of a.
    ->You can also overcome the 'Window' problem by importing only the awt classes that you are using, instead of importing all of them. For instance, instead of writing import java.awt.*, you could write import java.awt.Button.


    5.OTHER STUFF

    You can go through the sample programs provided with this package to understand other features of the language.
    I would recommend you to download Notepad++ from the net, and use the 'OOJASIC.xml' file supplied with this package to set up a coding environment for yourself.
    Otherwise, you can use 'Wordpad' supplied by Microsoft. Just don't use the basic Notepad. It ruins the tabbing.