lynx

πŸ“ BASIC GRAMMAR

πŸ”‘ KEYWORDS

Keyword Description
and both X and Y are true
char char type
class creates a class
const defines a constant
def defines a numeric constant
do tells that the loop will execute at least once, even if the condition evaluates to false
elif if the previous block of code evaluates to false, then executes another evaluation with a different statement
else runs the following block of code if the previous statement evaluates to false
exit exits from a loop
false false value
fun function
if introduces a conditional statement
import imports a module
jump skips to the next iteration
let defines a variable
new instantiates an object
not negates a statement
or either X or Y is true
ret return a value or exit from a function
self refers to the current instance of an object
true true value
while defines a loop that will keep running as long as the condition is met

#️⃣ SYMBOLS AND OPERATORS

Symbol Description
= assign a value
== compare a value
; marks the end of a statement. OPTIONAL
{ } delimits a block of code
( ) delimits an expression or marks a function
++ increment
– decrement
[ ] holds elements in an array or accesses an element at a specific index
, separates elements in an array
β€œβ€ string
β€˜β€™ character
. access a property of an object or represents a floating point
// single line comment
/**/ multiline comment