strath/sm-test-files/hello.sm
2021-12-16 10:03:50 +01:00

59 lines
1,003 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#mult /}}string{{str\ /{float}num\ |
¿string * float?
&& rest line comment
]]Inline comment[[
``
multiline comment
indention example (comments have to be indented as well, btw):
first level
second level
third level
fourth level
fifth level
sixth level
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
&& = is equal to ===
&& if condition is true log the text
¿??$/condition\ |
¡<=/"condition was true"!
?
&& if condition is false log the text
¿??€/condition\ |
¡<=/"condition was false"!
?
¿??$/condition\ |
¡<=
#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!
)