Smileua 1^.^0

Download

Converter 1^.^0 written in Smileua. Converter 1^.^0 in Lua for boostrapping.

parenthesis

(: expr :)

Operators

add expr :+) expr substract expr :-) expr multiply expr :*) expr devide expr /:) expr not expr :~) expr and expr :a) expr or expr :o) expr

Comparison

equal expr :==) expr not equal expr :~=) expr greater than expr :> expr smaller than expr <: expr greater or equal than expr :=> expr smaller or equal than expr <=: expr

Block

{: block :}

Assignment

: var :=) expr

Local variable

=:} var

If-Conditonal

[:?" condition [^: block :^]? condition [^: block :^] else-block :]

for-loop

?:) variable = b, e, s [: block :] ?:) k, v in expr [: block :]

while-loop

?:] condition [: block :]

repeat-loop

:?} block {?: condition

break

:^)

continue

nope!

function declratation

^.^ name(:arg, arg, ... :) block \o/ expr :]

Function call

expr(:arg, arg, arg, ...:) expr(:)