Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBPro] My own programming language

Author
Message
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 22nd Nov 2006 20:58
Well it doesn't really do anything yet, but you can set up data (I got it to work with variables, but it didn't work right, it basically treated the last created variable as the only one, which is fine if you want to create a variable everytime before you use it, but that was unorgnised)


Here's some code:


That was DBPro code.. this is my code:


Basically what it does:
It creates an "object" (A pile of data) that will soon be probably be able to be used on 3d objects, i.e. I could make an object act as a vector to position the 3d objects. But not right now.

You will notice commands such as val, rnd, add, sub, etc. They do what they look like, add() will add two number, mlt() will multiply the two numbers, val() is ust the number, but I stupidly made it only search for commands. Nevermind.

This is the output I get from that code:


Pointless I know it, but it could be the start of something good

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 23rd Nov 2006 19:31
Oh cmon! It can't be that bad!

Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 23rd Nov 2006 23:55
Looks pretty neat. Dig the syntax too.


You are not alone.
wildbill
18
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 24th Nov 2006 14:40
Trying to read code on a Blackberry sucks, but I gave it a whirl anyway. Its a big holiday in the US, so I'm sure the responses will come later.
Is this the same format you were using in your world building program? I did like that. When I look at command lines in any programing language, I find it easier if the functions are explained first. example(this function removes spaces and adds commas). Also if the functions were seperated by spaces (this may be the Blackberry). I'll look closer when I'm not using a silly Blackberry.

Login to post a reply

Server time is: 2024-11-22 23:40:19
Your offset time is: 2024-11-22 23:40:19