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.

DarkBASIC Discussion / Make Darkbasic with Darkbasic?

Author
Message
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Mar 2008 22:23
Hey,

Are you allowed to re-write the Dark Basic compiler with Dark basic?

Examples:

if input$="make object box" then make object box
if input$="set object collision on" then set object collision on
etc.


Thanks, TheComet

Oooooops!!! I accidentally formated drive c.
Blobby 101
20
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 22nd Mar 2008 22:53 Edited at: 22nd Mar 2008 22:53
well, what would be the point? not only would it be slower than Dark Basic normally is but it wouldn't make an EXE.


thanks to deathead for the sig! please Click on it!
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 23rd Mar 2008 00:22
You are allowed as the method you propose isn't recreating the interpretor. Now if you could actually write a compiler with DBC that turns those commands into machine code, then that would be quite impressive.

Enjoy your day.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 23rd Mar 2008 16:05
Quote: "Now if you could actually write a compiler with DBC that turns those commands into machine code, then that would be quite impressive."


I`m learning all about compilers now through a book that has 2000 pages. After about 200 years(the time it will take to read the book) I may be able to write a compiler...

Oooooops!!! I accidentally formated drive c.
jason p sage
19
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 28th Mar 2008 21:30
...Naaaa....

I personally think you need to tackle it like 4 or 5 times then you will have a clue!

First Time? It'll be all screwed up... Second time, you'll have planned more and it will get much further... but will be limited.....

Third time - you start getting alot of the concepts people talk about in those books - but its still junk for the most part because you forgot to make recursive expresion evaluators

Forth time - almost perfect except your compiled code isn't to optimized because your expression evaluator did reduce things to the simplest terms - but your compiler directives are working and you hashed alot of assembly code already so you are getting quite decent

Fifth time - you have a compielr that is starting to kick butt... However you know know so much about the subject you truly understand how much more you probably need to add... for various optimizations that you think maybe the user should be able to adjust etc.

Just takes determination.

Gosub
18
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 19th Apr 2008 02:30 Edited at: 19th Apr 2008 02:32


I don't think it works with sync on?
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 21st Apr 2008 09:17
I does, only if you`re not using 3d objects. it works with text without the sync

Oooooops!!! I accidentally formated drive c.

Login to post a reply

Server time is: 2026-07-06 00:09:34
Your offset time is: 2026-07-06 00:09:34