Are you tired of writing fast code too? Do you want to write a slow code that can't do anything properly? No matter your answer is yes or no, let me introduce my new app - Turl. Its name comes from Turtle Language due to its slowness. Turl runs code line by line and it doesn't have so many features. But it can print text, take inputs, declare variables, compare conditions and execute code(a.k.a if).
Its syntax is simple as itself. Let's take a look at Fizz-Buzz program(I limited loop to 20 because it takes a lot of time to execute)
var kk = 1
if ($kk_!=_21)
if (`$kk%3`_==0) && (`$kk%5`==_0)
print $kk-FizzBuzz
endif
else
if (`$kk%5`_==_0)
print $kk-Buzz
endif
if (`$kk%3`_==_0)
print $kk-Fizz
endif
endelse
var kk = `$kk+1`
goto 2
endif
and its response
HOW TO USE
print - it prints the text. (print Hello World!
)
var - declares variable (var name = Jeff
)
input - takes input from user and sets the variable (input age
)
goto - goes to specific line number (goto 1
)
if and endif - checks the condition and executes code
if (4__==__4)
print Hello World!
endif
You can use __==__, __>__, __<__, __!=__, __>=__, __<=__ for comparision.
else and endelse - does the opposite of last if (one if only can have one else)
if (4__==__5)
print Hello World!
endif
else
print Bye World!
endelse
Note: you can use conditions as (4__==__4) && (5__==__5). && represents and, || represents ||
All the texts except keywords will be considered as string, if you want to use variable write it as $name or if you want to do some math, use ``, for example
print `4+4`
Used extensions:
KevinkunRegEx by KevinKun
TaifunMath, TaifunTools and TaifunTextbox by Taifun
ComponentUtil by Gordon Lu
Thanks to all.
If you want to download
And if you want to improve it and add features, feel free
commandline.aia (590.3 KB)
- Good app
- Bad app
0 voters