strath/sm-test-files/hello.sm

49 lines
778 B
Text
Raw Normal View History

2021-12-16 08:40:17 +00:00
#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
&& 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"!;
)