2021-12-16 10:45:16 +00:00
|
|
|
|
&& ¡! around code means its a statement
|
|
|
|
|
&& ¿? around code means its an expression
|
|
|
|
|
|
2021-12-16 09:38:27 +00:00
|
|
|
|
#mult /}}string{{str\ /{float}num\ | (
|
2021-12-16 08:40:17 +00:00
|
|
|
|
¿string * float?
|
2021-12-16 09:38:27 +00:00
|
|
|
|
)
|
2021-12-16 08:40:17 +00:00
|
|
|
|
|
|
|
|
|
&& rest line comment
|
|
|
|
|
|
|
|
|
|
]]Inline comment[[
|
|
|
|
|
|
|
|
|
|
``
|
2021-12-16 10:45:16 +00:00
|
|
|
|
multiline comment
|
|
|
|
|
indention is 3 spaces
|
|
|
|
|
main function has to be a thing
|
2021-12-16 08:40:17 +00:00
|
|
|
|
´´
|
|
|
|
|
|
|
|
|
|
¡}}string{{ variable!
|
|
|
|
|
|
|
|
|
|
&& take input into variable
|
|
|
|
|
¡=>/variable\!
|
|
|
|
|
|
|
|
|
|
&& output variable
|
|
|
|
|
¡<=/variable\!
|
|
|
|
|
|
|
|
|
|
&& $ means true
|
|
|
|
|
&& € means false
|
|
|
|
|
|
2021-12-16 09:03:50 +00:00
|
|
|
|
&& == is implied in if conditions
|
2021-12-16 20:12:44 +00:00
|
|
|
|
; test comment
|
2021-12-16 09:03:50 +00:00
|
|
|
|
&& = is equal to ===
|
|
|
|
|
|
2021-12-16 08:40:17 +00:00
|
|
|
|
&& if condition is true log the text
|
2021-12-16 09:38:27 +00:00
|
|
|
|
¿??$/condition\ | (
|
2021-12-16 20:12:44 +00:00
|
|
|
|
¡<=/"condition was true"!; hello test
|
2021-12-16 09:38:27 +00:00
|
|
|
|
)?
|
2021-12-16 08:40:17 +00:00
|
|
|
|
|
|
|
|
|
&& if condition is false log the text
|
2021-12-16 09:38:27 +00:00
|
|
|
|
¿??€/condition\ | (
|
2021-12-16 10:45:16 +00:00
|
|
|
|
¡<=/"condition was false"!
|
2021-12-16 09:38:27 +00:00
|
|
|
|
)?
|
2021-12-16 08:40:17 +00:00
|
|
|
|
|
2021-12-16 09:38:27 +00:00
|
|
|
|
#sub /\ | (
|
2021-12-16 10:45:16 +00:00
|
|
|
|
&& This code prints hello world
|
|
|
|
|
¿??$? | (
|
|
|
|
|
!<= "Hello World"!;
|
|
|
|
|
)
|
2021-12-16 09:03:50 +00:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
#sub /\ | (
|
2021-12-16 10:45:16 +00:00
|
|
|
|
&& This code checks if input is equal to another string
|
|
|
|
|
¿??$ /=> "hello"\? | ( && Takes input and compares to string
|
|
|
|
|
!<= "World!"!; Prints World!
|
|
|
|
|
)?
|
2021-12-16 08:54:58 +00:00
|
|
|
|
)
|