Ola language
  • Introduction
  • 🏃‍♂️Quick Start
  • 👀Ola Examples
  • 👏Ola Language
    • Variables
    • Data Types
    • Operators
    • Control Flow
    • Functions
    • Event
    • Contracts
    • Interfaces and Librariese
    • Import
    • Comment Lines
    • Features TODO
  • Standard Libraries
    • CoreLib Functions
    • Prophet Functions
  • Ola Language ABI
  • Ola Compiler
    • Compiler Frontend
    • Compiler Backend
  • Ola Language Grammar
  • Appendix
Powered by GitBook
On this page
  • Keywords
  • Reservation keywords
Edit on GitHub

Appendix

Keywords

The following list shows the keywords and reserved words for ola-lang.

keywords
explanation

const

Constants declaration

type

Type alias declaration

struct

Structure declaration

enum

Definition of a enum

fn

Function declaration

for

Ronditional loop based on the result of the expression

do

do while statement

while

do while / while statement

break

break loop

continue

continue loop

if

Result selection branches based on conditional expressions

else

Candidate statements for if control flow

return

Function returns results

bool

Boolean value

u32

uint32 value

u64

uint64 value

u256

uint256 value

field

The field element within the scope of p

address

address value

hash

hash value

fields

field dynamic length array

string

string value

true

boolean ture

false

boolean false

assert

Assertion of the input expression

import

Importing other files

contract

Definition of a smart contract

Reservation keywords

pub
impl
loop
use
match
static
u128
in
override
PreviousOla Language Grammar

Last updated 1 year ago