Zontroy Code Generator
  • 🖌️Getting started with Zontroy
  • INTRODUCTION
    • Zontroy Code Generator
    • Advantages of Zontroy Code Generator
    • Installation
    • Zontroy Programming Language
    • Zontroy Environment
    • Zontroy Commands
  • Zontroy Project Types
    • Zontroy Project
      • Oprazi .zproject file for MSSQL
      • CrudwithGo .zproject file for MySQL
      • Course-management .zproject file for Entity
      • JavaCodeGenerator .zproject file for PostgreSQL
  • Zontroy File Types
    • Zontroy Single File
    • Zontroy Repeating File
    • Zontroy Inner Repeating File
  • Zontroy Tutorial
    • Zontroy Syntax
    • zg-entity
    • zg-entities
    • zg-if
    • zg-for
    • Data Type Conversion
    • Built-in Functions
  • Use Together
    • Github Copilot
    • ChatGPT
  • Zontroy How To
    • Javascript
    • Typescript
    • Java
    • Python
    • CSharp
    • PHP
Powered by GitBook
On this page
  • zg Prefix
  • Triple Brackets
  • Triple Operators
  1. Zontroy Tutorial

Zontroy Syntax

PreviousZontroy Inner Repeating FileNextzg-entity

Last updated 7 months ago

zg Prefix

In Zontroy language keywords starts with zg prefix. It allows Zontroy to distinguish code written in Java, Python, Go etc. and Zontroy Language.

For example, zg-entity is a predefined object of an entity corresponding to a table in database. Another example is zg-for that can execute a block of code a number of times.

Triple Brackets

Brackets have to be written triple times in Zontroy. It is because while implementing a code file Zontroy code is written into the code of another programming language. It helps Zontroy to distinguish code written in Java, Python, Go etc. and Zontroy Language.

Parentheses ((( ))): Used to group expressions.

Curly braces {{{ }}}: Used to group statements together. They are used to define a code block and are used in control statements (if, for, etc) and classes, methods and other constructs.

Square brackets [[[ ]]]: Used to operate on pre-defined objects.

Triple Operators

Operators and marks have to be written triple times or more in Zontroy. It is because while implementing a code file Zontroy code is written into the code of another programming language.

When we implement a for loop we will write triple left parantheses, triple right parantheses, triple left braces and triple right braces.

Equality =====: Used to compare right side and left side expression. It is used as five equal signs.

Good to know: Zontroy IDE has its own hightlighter for Zontroy Language so code written in Zontroy is easy to read and maintain.