I have been working on a design for a programming language that I like to call Kowalski and just felt that I could share some of the syntax with you guys. :).
I am still working on the whole syntax of the language but I thought I coudl share some with y'all.
So let's begin:
Variable declarations are as follows:
! declare myVar
You can assign a value to a variable by using the `set` function:
:: myVar set 21
WHat happens above is that the interpreter will read all elements of that line of code after the `::` and the variable's identifier `myVar` and will execute it as a shell command and then get the output of the command and assign that to the variable in memeory (or on disk (cool ey?)) and then `myVar` will have the value of `21`.
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 597 |
Nodes: | 8 (0 / 8) |
Uptime: | 03:13:52 |
Calls: | 10,789 |
Files: | 5 |
Messages: | 475,087 |