Skip to content

Variable Types

Sumit Patel edited this page Aug 27, 2018 · 2 revisions

Variable Types


There are 6 types of variables supported in chirp:

  • String Type. Example:- "this is a string"
  • Number Type. Example:- 23, 2183.123
  • Boolean Type. Example:- true, false
  • NULL Type.
  • Mysterious Type.
  • Object Type.

Assignment

There are two types assignment available in rockstar.

Normal Assignment

Syntax:- Put Identifier1/Literal into Identifier2
Example:- Put 2 into A will assign the value of A to 2. Put "sumit" into my name will assign my name to the value "sumit".
There is no need declaring variables before assignment.

Poetic Assignment

This is where the real thing happens. Poetic assignments are used.
Syntax:- Identifier is/was/were rest part of sentence Example:- my name is sumit will assign my name to the value 5. my name is sumit. but why will assign my name to the value 5.33.


Note: there is no yet type conversion supported in chirp


Previous Page | Next Page

Clone this wiki locally