Syntax

Table of Contents

Introduction

All the code related to Rockplate start with [ and ends with ]. To separate keywords and identifers space is used as a delimiter.

a complex example:

Comments

Comments start with [-- and ends with --]. In between it can have any text.

Syntax notation:

[ -- zero or more characters -- ]

Expressions - Identifers

Expressions can be used to print Identifiers

Syntax notation:

[ OBJECT space IDENTIFIER_PROPERTY ]

If blocks - Booleans

If blocks can be used to make use of Booleans

Syntax notation:

[ if space OBJECT space operator space BOOLEAN_PROPERTY ]

True Content

[ else ]

False Content (optional)

[ end space if ]

Operators

is | are | is not | are not

Repeat blocks - Arrays

Repeat blocks can be used to loop through Arrays

Syntax notation:

[ repeat space ARRAY ]

Inner Content

[ end space repeat ]


Made with ❀️ from Safraz Razik