From Clomosy Docs
The Clomosy platform offers two different syntax structures to provide flexibility and functionality in programming: TRObject and Base. Both structures serve different use cases and bring distinct approaches to the programming process.
Below are the headings for different usage structures of syntax used in the Clomosy platform. How each syntax is utilized will be detailed under the respective topics.
- Loops
- Conditions
- Operators
- Error Handling
- Procedure Usage
Every Clomosy program has an execution section in a specific order. The following format shows the basic syntax of a Clomosy program:
TRObject Syntax
const //global constant declaration block
var //global variable declaration block
function //function declarations, if any
//local variables
{
...
}
void //procedure declarations, if any
//local variables
{
...
}
{ //main program block starts
...
} //the end of main program block
Base Syntax
const //global constant declaration block var //global variable declaration block function //function declarations, if any //local variables begin ... end; procedure //procedure declarations, if any //local variables begin ... end; begin //main program block starts ... end; //the end of main program block