Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can a compiler be made using QBasic?
#3
Potentially, I think it is possible to make a program in QB that works like a compiler. To do this you would make an interpreter that takes a program stored in a string or an array and executes it. Then you set the string/array to say something like "JotGB..." followed by X spaces (the max length of a program) and compile it to an EXE file. Then the compiler copies the interpreter program and replaces the "JotGB...              " with the code. I don't know if this would work, as i am to lazy to test it, but i think it might. If you like, I could make a simple program that compiles EXEs to say a string you enter or something.
This would not make very good or fast programs, and if you want to make a good programming language, I would recommend learning C or something.
Hope this helped,
LPG 
WHILE RPG$ <> "complete" : make up silly excuses :WEND
Reply


Messages In This Thread
Re: Can a compiler be made using QBasic? - by LPG - 10-30-2009, 07:58 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)