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: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 105 |
Nodes: | 16 (0 / 16) |
Uptime: | 11:19:59 |
Calls: | 5,908 |
Calls today: | 4 |
Files: | 8,496 |
D/L today: |
536 files (162M bytes) |
Messages: | 343,622 |
Posted today: | 4 |