-
Notifications
You must be signed in to change notification settings - Fork 5
Variable Types
Sumit Patel edited this page Aug 27, 2018
·
2 revisions
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.
There are two types assignment available in rockstar.
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.
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