55 lines
965 B
Text
55 lines
965 B
Text
&& ¡! around code means its a statement
|
||
&& ¿? around code means its an expression
|
||
|
||
#mult /}}string{{str\ /{float}num\ | (
|
||
¿string * float?
|
||
)
|
||
|
||
&& rest line comment
|
||
|
||
]]Inline comment[[
|
||
|
||
``
|
||
multiline comment
|
||
indention is 3 spaces
|
||
main function has to be a thing
|
||
´´
|
||
|
||
¡}}string{{ variable!
|
||
|
||
&& take input into variable
|
||
¡=>/variable\!
|
||
|
||
&& output variable
|
||
¡<=/variable\!
|
||
|
||
&& $ means true
|
||
&& € means false
|
||
|
||
&& == is implied in if conditions
|
||
; test comment
|
||
&& = is equal to ===
|
||
|
||
&& if condition is true log the text
|
||
¿??$/condition\ | (
|
||
¡<=/"condition was true"!; hello test
|
||
)?
|
||
|
||
&& if condition is false log the text
|
||
¿??€/condition\ | (
|
||
¡<=/"condition was false"!
|
||
)?
|
||
|
||
#sub /\ | (
|
||
&& This code prints hello world
|
||
¿??$? | (
|
||
!<= "Hello World"!;
|
||
)
|
||
)
|
||
|
||
#sub /\ | (
|
||
&& This code checks if input is equal to another string
|
||
¿??$ /=> "hello"\? | ( && Takes input and compares to string
|
||
!<= "World!"!; Prints World!
|
||
)?
|
||
)
|