1 year ago
While on Windows nowadays there is only PowerShell the choice for Windows scripting, back in the days there was a much more range of scripting languages to pick.
And I am not talking VBS, but rather many more that were developed by various people in their spare time. And for me it was quite fun to tinker around with them. One of them I still remember today is AutoIt.
Granted, I didn't really use it, but I watched it for a while and it was really great what you could do with it. There were various use cases where you could automate things with it or just create complex scripted applications.
And I am not talking about sysadmins here.
So, anyways, years later I started developing my own scripting language and also a scripting shell. I named the scripting language dnyScript and created an interpreter which basically consists of a C++ header and source file.
The scripting shell was named AquaShell. Its use case is similar to AutoIt or - nowadays - PowerShell.
When creating the syntax I wanted to make it stand out a little. Also internally everything is basically a command.
Here is a code example:
# Demonstrate recursive function calls
const MAX_COUNT int <= 10;
function recursive void(count int)
{
if (%count, -ls, %MAX_COUNT) {
++ count;
print "Count value: %count";
call recursive(%count) => void;
};
};
call recursive(0) => void;
print "Done.";
pause;
This code is the implementation of a recursive function call as it's possible in other languages, too.
Today I use my shell to perform various tasks. I also created a collection of useful scripts as well as a complete Twitch chat bot app.
It's really cool to use a selfmade scripting shell while keeping a nostalgic memory in mind.
If you want to get more information about AquaShell, feel free to visit its official website.