Qbasicnews.com

Full Version: Code translator
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
i want to make a translator that will print what i write in english into code. how do i do that
Use Quickbasic.
I'd suggest you to begin learning from the beginning Wink It is like I posted "I want to make Doom IV. How do I do that?"
Yeah, first read yourself into some old dusty books, and then please specify your question.
nooooooo

NO BOOKS just KNOWLEDGE

KNOWLEDGE=pOWER
QuickBASIC=POWER
QuickBASICI Programming = Attainment of Knoweledge!![/b]
"QuickBASIC=POWER"

you're satan, arent you?
as for the question, no. there are no such translators available. if there was no one would code anymore. basic was kinda designed to be that, having all its keywords english words, and so was perl, having the world's most flexible and easily abused syntax but you're just going to have to stick with learning to program.
Just try COBOL Big Grin
It wouldnt be to hard to write a translator for programming-language-like-english to Qbasic. You could probably do this very easily with the C preprocessor. e.g.
Code:
reset counter
while counter is less than 100
  add one to counter
  print value of counter
end while loop

Although Qbasic is already very close to this kind of syntax. The other thing to releasise is that a language like this is very inflexible, it is only good for very high level things. Languages such as asm and C, on the other hand are tied very closely to the way the machines work, so they are more powerful. The closer you go towards human understanding, the futher you move from machine understanding. Its one of those inevitable trade-offs in computer science.

If you were invisaging a program that could take an english description of a program and code it for you, eg:
Code:
User: Okay computer, I want an address book program that records names, addresses and phone numbers of my friends.
Computer: How many addresses does it need to store?
User: Umm, quite a few, lots.
Computer: Should it be web-based or not?
User: Err gee, I dunno. Maybe, just as long as it has lots of pretty colours.
Computer: Okay, one address book program coming up....

Then you might want to wait a few years for research in AI to get better. In the meantime you can always try MSVC++, you just tell clippy what you want and he will sort you out something intersting :roll: j/k
Quote:Just try COBOL Big Grin

Come now, no talking about this new fangled languages.. now to find my current punch card account program.. ;-)
bleh, you kids and your punch cards *turns metal crank and starts counting iron cylinders*
Pages: 1 2