View Full Version: My new interpreter

C++ Learning Community > C++ Works in Progress > My new interpreter


Title: My new interpreter


dr voodoo - December 22, 2003 09:27 PM (GMT)
EDIT:
Version 0.5 is out
Look at my last post for details.
EDIT over
Some of you may remember the little crappy interpreter I wrote a few months ago. Well I wrote a new one. It's much better than the old one and much faster.

Perhaps somebody knows Logo. The syntax is similar, although there a few differences and for the moment my interpreter has only a vrey few build-in functions.

What I plan on adding:
  • operators
  • userdefinable function (shouldn't be any problem)
What I still need is a name for it.

If somebody has any suggestions or found any bugs please post them.

You can download it here (120kb might need to right click save target as)
http://www.geocities.com/voodoocpp/inter.zip
EDIT:Updated link

Jossh - December 22, 2003 09:49 PM (GMT)
link dont work for me >.>

dr voodoo - December 22, 2003 10:06 PM (GMT)
Works for me. Did you try right click->save as?

Dante Shamest - December 23, 2003 04:04 AM (GMT)
Link doesn't work for me either.

Geocities shows this message:

QUOTE

We're sorry, but this page is currently unavailable for viewing.
If this site belongs to you, please read this help page for more information and assistance.


Consumed - December 23, 2003 05:26 AM (GMT)
Link worked for me. I right-clicked>saved it.
Geocities doesn't like remote-linking of files because their ads don't get shown. Go with a host like this: http://www.angeltowns.com . Just be sure to refresh your directories after you upload something. Btw, a.t. is also the host I use. It's MUCH better than Geocities.

Dante Shamest - December 23, 2003 05:41 AM (GMT)
Tried it again. It works now. Geocities is a horrible host.

Not bad work. I think I will try writing an interpreter myself one of these days. :)

Consumed - December 23, 2003 05:47 AM (GMT)
Yea, I used to be on Geocities. I hated every minute of it.

dr voodoo - December 27, 2003 01:44 PM (GMT)
I have updated my interpreter to version 0.5
What changed since the last version:
  • User can define his own function
  • functions can be recursive
  • Variables can be declared local to a list
  • small documentation of the language and the build-in functions
  • added Guess-the-number example
  • Corrected bug which didn't allow the user to start the code with comment
The download link is:
http://www.geocities.com/voodoocpp/inter.zip

If you have any suggestions, found any bugs, have any comment (no matter if they are good or bad) or have an idea how I could name my interpreter please reply or send me a mail.

Maverick - December 27, 2003 03:34 PM (GMT)
how about compiling ur code with it :)

dr voodoo - December 27, 2003 04:08 PM (GMT)
QUOTE
how about compiling ur code with it

What do you mean?

Consumed - December 28, 2003 07:15 PM (GMT)
I think he means actually compiling the code instead of interpreting it. Btw, when I ran your example that came with the last one, when it came to entering a string, I typed in(without quotes): "Consumed is cool!", and when it told me what I typed in(witout quotes): "Consumedis".

dr voodoo - December 28, 2003 07:37 PM (GMT)
QUOTE
I think he means actually compiling the code instead of interpreting it.

Well than it wouldn't be an interpreter anymore ^_^ .

QUOTE
Btw, when I ran your example that came with the last one, when it came to entering a string, I typed in(without quotes): "Consumed is cool!", and when it told me what I typed in(witout quotes): "Consumedis

I can confirm that bug. Shouldn't be hard to fix. Thanks for telling me.

ih8censorship - December 28, 2003 09:27 PM (GMT)
pretty cool! i think its got a lot of potential. anyways my idea for naming it would be V++ because it was made by drVoodoo ;)

Dragon - December 29, 2003 01:36 AM (GMT)
It seems interesting. I downloaded it a while ago but didn't bother to run it with WINE, but I will download it again and check it out. :)

TheHawgMaster - December 29, 2003 02:15 AM (GMT)
Very nice. I tried to make an interpreter a while back but never got it working (tried to bite off a little too much more than I could chew and it was quite a while ago). Maybe I'll try again soon...

And Ih8, perhaps just V would be more appropriate since he doesn't have operators yet :lol:

dr voodoo - December 29, 2003 06:46 PM (GMT)
Thanks for the good replies :)

QUOTE
anyways my idea for naming it would be V++ because it was made by drVoodoo

I don't know ... That resembles too much to C++ and the language doesn't have very much in common with C++.

QUOTE
And Ih8, perhaps just V would be more appropriate since he doesn't have operators yet

Anyway operators don't have a high priority for the moment because I don't really know how I should implement them so that there isn't a speed break in.




* Hosted for free by InvisionFree