ooPIC Logo

ooPIC Language Syntax

Main Index

Back to top of page Syntax Compatibility Modes

 Visual BasicIn Basic compatibility mode, the syntax is modeled after Microsoft's Visual Basic Language
 BASICIn BASIC compatibility mode, the syntax is modeled after the standard BASIC language.
 JavaIn Java compatibility mode, the syntax is modeled after Sun's Java Language
 CIn C compatibility mode, the syntax is modeled after the C, and C++ languages.
 
Notice: While these scripting languages provide all the tools needed to create ooPIC applications, it should be noted that these scripting languages are NOT full implementations of the respective precedents they are modeled after and that not all of the functionality of those languages is needed nor supported by the ooPIC compiler.
Declarations 
 ObjectsDeclares variables and Objects for use.
 ConstantsDeclares named constant values for use in place of literal values.
 ProceduresDeclares the name, beginning and end of the code that forms the body of a Procedure.
 FunctionsDeclares the name, beginning and end of the code that forms the body of a user defined Function.
Branching 
 Procedure CallInstructs the Program Flow to branch to, and then return from a Sub Procedure.
 Function CallInstructs the Program Flow to branch to, and then return from a Function with a value.
 UnconditionalInstructs the program flow to unconditionally branch to another part of the program.
Looping Constructs 
 DoInstructs the program flow to execute a group of statements as long as a given condition is met.
 ForExecutes a group of statements a specified number of times.
 WhileInstructs the program flow to execute a group of statements as long as a given condition is met.
Selection Constructs 
 CaseInstructs the program flow to selectively execute one of several possible blocks of statements.
 IfInstructs the program flow to conditionally execute a group of statements.
Operators 
 AssignmentsAssigns a value to a variable or to another object's property.
 RelationalPerforms a relational conjunction between two expressions.
 LogicalPerforms a logical conjunction between two expressions.
 ArithmeticPerforms an arithmetic conjunction between two expressions.
Functions
 AbsCalculates and returns the absolute value of a number.
 ChrCalculates and returns the ASCII value of a single character string.
 CosCalculates and returns the cosine of an angle.
 SinCalculates and returns the sine of an angle.
 SqrCalculates and returns the square root of a number
 Str$Calculates and returns a string that represents the value of a number.
Miscellaneous
 RemarksUsed to include explanatory remarks in a program.

Java is a trademark of Sun Microsystems.

 

ooPIC Compiler Ver 6.0 (c) Copyright 1997 - 2007 Savage Innovations, LLC.