09-29-2004, 07:23 AM
I was just having a thought while I was doing an assignment? Would it be possible to recreate visual basic using visual basic code? Could it be possible to create a code that would check If statements, search for the API's have all the object properties, etc. This would probably take an ENORMOUS amount of time to create and code, but do you think it's possible?
09-29-2004, 08:18 AM
If you are talking about redeveloping the IDE, then probably. Creating an add-in to perform such functionality would probably be the better route to take though.
09-29-2004, 10:11 AM
Hardest bit would be compiler wouldn't it?
09-29-2004, 12:10 PM
i have writen dozens of little programs that do scripting, like they read text from files, and then interprets them then does them... thatpart is easy... like tomc2506 is saying the compiler would be rather difficult, you could TECHNICLY do it in vb, but assembly would be better, and that is deffinitly out of mine, and most relems of knolege, lol
writing a scrip interpreter is fairly easy, you are just reading it ether line by line, or char by char, ie: vb is line by line, C, and C++ is char by char.
although this is a program that has to run in the background, thus it could not stand on its own... although you could have the code in a file in a resource file, and that could all be cupled in an exe, that the interpreter is really the exe, and it is refrencing the resource file.
10-07-2004, 10:26 AM
Oh I don't actually want to do it I was just wondering if it was possible. Thanks for the tips though
10-07-2004, 10:55 AM
The compiler is the only part that would be tough, but it's probably not impossible.
The first Pascal compiler was written in Pascal. I read about it in the Pascal textbook I had. The creator (I think his name was Niklaus Wirth, it's been a while since I read the history of Pascal) failed twice at writing the compiler in FORTRAN, so he wrote the core in assembly. He then used this compiler core to compile a more functional compiler. He used that revision to add more functionality, and so forth until the final version was born.
10-12-2004, 05:51 AM
AtmaWeapon, wow that sounds like a hard way to go about it.
10-12-2004, 07:23 AM
Not really when you consider he wrote the entire thing in FORTRAN twice and failed both times. Usually if I fail twice I try something really crazy for the third time too :p
10-13-2004, 02:53 AM
Well that is one way to think of it i spose ;)