From Clomosy Docs
ClomosyAdmin (talk | contribs) No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| Line 22: | Line 22: | ||
<br><br> | <br><br> | ||
<div class="alert alert-LightSkyBlue | <div class="alert alert-LightSkyBlue-1 role="alert" data-bs-theme="light"style=background-olor: "> | ||
<h2 class="alert-heading"> | <h2 class="alert-heading"> | ||
Program Structure</h2> | Program Structure</h2> | ||
| Line 33: | Line 33: | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="alert alert- | <div class="alert alert-LightSkyBlue-2 role="alert" data-bs-theme="light"> | ||
<h2 class="alert-heading">Syntax</h2> | <h2 class="alert-heading">Syntax</h2> | ||
<p> The rules that define how to correctly write code in your language. This includes variable declarations, function calls, operator usage, and other grammatical rules specific to the language.</p> | <p> The rules that define how to correctly write code in your language. This includes variable declarations, function calls, operator usage, and other grammatical rules specific to the language.</p> | ||
| Line 43: | Line 43: | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="alert alert- | <div class="alert alert-LightSkyBlue-3 role="alert" data-bs-theme="light"> | ||
<h2 class="alert-heading">Data Types</h2> | <h2 class="alert-heading">Data Types</h2> | ||
<p> A description of the data types supported by your programming language (e.g., integers, floating-point numbers, strings, etc.) and how they are declared and used within the program.</p> | <p> A description of the data types supported by your programming language (e.g., integers, floating-point numbers, strings, etc.) and how they are declared and used within the program.</p> | ||
| Line 53: | Line 53: | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="alert alert- | <div class="alert alert-LightSkyBlue-4" role="alert" data-bs-theme="light"> | ||
<h2 class="alert-heading">Operators</h2> | <h2 class="alert-heading">Operators</h2> | ||
<p>The operators used to perform mathematical, logical, and comparison operations in the language. This section explains how addition, subtraction, logical operators (AND, OR), and other operations work.</p> | <p>The operators used to perform mathematical, logical, and comparison operations in the language. This section explains how addition, subtraction, logical operators (AND, OR), and other operations work.</p> | ||
| Line 62: | Line 62: | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="alert alert- | <div class="alert alert-LightSkyBlue-5" role="alert" data-bs-theme="light"> | ||
<h2 class="alert-heading">Conditional statements</h2> | <h2 class="alert-heading">Conditional statements</h2> | ||
<p> Explains how to control the flow of the program using conditional statements like "if" and "else." This section covers how the program behaves based on different conditions.</p> | <p> Explains how to control the flow of the program using conditional statements like "if" and "else." This section covers how the program behaves based on different conditions.</p> | ||
| Line 71: | Line 71: | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="alert alert- | <div class="alert alert-LightSkyBlue-6" role="alert" data-bs-theme="light"> | ||
<h2 class="alert-heading">Loops</h2> | <h2 class="alert-heading">Loops</h2> | ||
<p>A guide to repetitive task structures like "for" and "while" loops. It explains how to iterate over a set of instructions and when to use each loop type. | <p>A guide to repetitive task structures like "for" and "while" loops. It explains how to iterate over a set of instructions and when to use each loop type. | ||
| Line 81: | Line 81: | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="alert alert- | <div class="alert alert-LightSkyBlue-7" role="alert" data-bs-theme="light"> | ||
<h2 class="alert-heading">Functions</h2> | <h2 class="alert-heading">Functions</h2> | ||
<p>This section covers how to define and use reusable blocks of code that perform specific tasks. It explains function definitions, how to pass parameters, and return values.</p> | <p>This section covers how to define and use reusable blocks of code that perform specific tasks. It explains function definitions, how to pass parameters, and return values.</p> | ||
| Line 91: | Line 91: | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="alert alert- | <div class="alert alert-LightSkyBlue-8" role="alert" data-bs-theme="light"> | ||
<h2 class="alert-heading">Procedures</h2> | <h2 class="alert-heading">Procedures</h2> | ||
<p>Similar to functions but without returning a value. This section explains how procedures are used for performing specific tasks and when to use them instead of functions.</p> | <p>Similar to functions but without returning a value. This section explains how procedures are used for performing specific tasks and when to use them instead of functions.</p> | ||
| Line 98: | Line 98: | ||
<div class ="green-learn-more" > | <div class ="green-learn-more" > | ||
[[Procedures|Learn More]] | [[Procedures|Learn More]] | ||
</div> | |||
</div> | |||
</div><div class="alert alert-LightSkyBlue-9" role="alert" data-bs-theme="light"> | |||
<h2 class="alert-heading">System Library</h2> | |||
<p>SystemLibrary is a library that is included by default in all script components. It adds frequently used procedures and functions such as ShowMessage and IntToStr.</p> | |||
<hr> | |||
<br> | |||
<div class ="green-learn-more" > | |||
[[System_Library|Learn More]] | |||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="alert alert- | <div class="alert alert-LightSkyBlue-10" role="alert" data-bs-theme="light"> | ||
<h2 class="alert-heading">Error Trapping</h2> | <h2 class="alert-heading">Error Trapping</h2> | ||
<p>Explains how errors are handled in the language. This section describes error-catching mechanisms (e.g., "try-catch" blocks) and how to manage errors to prevent program crashes.</p> | <p>Explains how errors are handled in the language. This section describes error-catching mechanisms (e.g., "try-catch" blocks) and how to manage errors to prevent program crashes.</p> | ||
Revision as of 08:44, 7 October 2024
Overview
TRObject is a programming language designed for developing mobile applications on the Clomosy platform. It can be run on various operating systems such as Android, Windows, iOS, macOS, and Linux via the Clomosy Learn application. This document is intended to help you understand the TRObject language and assist you in progressing with the related frameworks.
Audience
This document is designed for beginners and software professionals who wish to learn the TRObject programming language through simple and easy-to-follow steps. The aim is to provide a foundational understanding of TRObject programming concepts. Upon completing this document, you are expected to reach an intermediate level of knowledge and advance towards higher expertise in mobile application development.
Prerequisites
Before starting this course, you should have a basic understanding of the Clomosy mobile application development platform and fundamental software concepts. If you already have knowledge of another mobile application development platform or a computer programming language, it will provide you with an additional advantage.
Why Use TRObject?
- Modern Syntax: TRObject features a readable and modern syntax, making the software development process more efficient.
- Object-Oriented Programming: By supporting the object-oriented programming paradigm, it makes complex software projects more manageable.
- Ease of Learning: TRObject is designed to be easily learned by beginners, allowing them to quickly grasp coding concepts.
- Extensive Library Support: Offers extensive library support for various tasks and functions, accelerating the mobile app development process.
- High Performance: Optimized for developing high-performance mobile applications.
- IoT and Integration Support: Seamlessly integrates with Raspberry Pi, MQTT protocol, SQL databases, and IoT projects, offering compatibility with next-generation software languages.
Program Structure
Every Clomosy program follows a specific execution order. This section explains how to structure your code and build the program structure using TRObject and Base syntax on the Clomosy platform. Key rules and building blocks for organizing code in a modular and understandable way are discussed under this heading.
Syntax
The rules that define how to correctly write code in your language. This includes variable declarations, function calls, operator usage, and other grammatical rules specific to the language.
Data Types
A description of the data types supported by your programming language (e.g., integers, floating-point numbers, strings, etc.) and how they are declared and used within the program.
Operators
The operators used to perform mathematical, logical, and comparison operations in the language. This section explains how addition, subtraction, logical operators (AND, OR), and other operations work.
Conditional statements
Explains how to control the flow of the program using conditional statements like "if" and "else." This section covers how the program behaves based on different conditions.
Loops
A guide to repetitive task structures like "for" and "while" loops. It explains how to iterate over a set of instructions and when to use each loop type.
Functions
This section covers how to define and use reusable blocks of code that perform specific tasks. It explains function definitions, how to pass parameters, and return values.
Procedures
Similar to functions but without returning a value. This section explains how procedures are used for performing specific tasks and when to use them instead of functions.
System Library
SystemLibrary is a library that is included by default in all script components. It adds frequently used procedures and functions such as ShowMessage and IntToStr.
Error Trapping
Explains how errors are handled in the language. This section describes error-catching mechanisms (e.g., "try-catch" blocks) and how to manage errors to prevent program crashes.
Related Links (Follow the Steps to Proceed)
- Download to use the Clomosy platform.
- To become a developer, go to Developer page.
- Go to Project Creation to create a project
- Go to Users page for testing