Zontroy AI
  • 🖌️Getting started with Zontroy AI
  • INTRODUCTION
    • Zontroy AI
    • Why Choose Zontroy AI?
      • Free AI Models Integration
      • Free for Students
      • Technical Advantages
      • The Developer's Choice
    • Zontroy AI Quick Start
    • Zontroy AI Chat
    • Zontroy AI Collaborator
    • Zontroy AI Peerer
    • Zontroy AI Model Context Protocol (MCP)
  • Zontroy Offline Code Generator
    • Zontroy Offline Code Generator
      • Oprazi .zproject file for MSSQL
      • CrudwithGo .zproject file for MySQL
      • Course-management .zproject file for Entity
      • JavaCodeGenerator .zproject file for PostgreSQL
    • Zontroy AI Offline File Types
      • Zontroy AI Offline Single File
      • Zontroy AI Offline Repeating File
      • Zontroy AI Offline Inner Repeating File
    • Zontroy AI Offline Code Generator Tutorial
      • Zontroy Syntax
      • zg-entity
      • zg-entities
      • zg-if
      • zg-for
      • Data Type Conversion
      • Built-in Functions
  • Zontroy AI Models
    • Supported AI Models
      • OpenAI
      • Anthropic (Claude)
      • DeepSeek
      • Google (Gemini)
      • Qwen
      • xAI
      • Llama
      • OpenRouter
    • Selecting the Optimal Model for Different Tasks
  • Zontroy AI How To
    • Javascript
    • Typescript
    • Java
    • Python
    • CSharp
    • PHP
Powered by GitBook
On this page
  • zg Prefix
  • Triple Brackets
  • Triple Operators
  1. Zontroy Offline Code Generator
  2. Zontroy AI Offline Code Generator Tutorial

Zontroy Syntax

PreviousZontroy AI Offline Code Generator TutorialNextzg-entity

Last updated 29 days 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.