Posts: 46
Threads: 12
Joined: Dec 2002
i want to make a translator that will print what i write in english into code. how do i do that
img]http://forums.rleague.com/images/avatars/westsig.gif[/img]
go the mighty maggies.
(thanks yakstorm)
i regularly visit a rugby league version of these forums. i have amassed almost 2k worth of messages.
Posts: 3,368
Threads: 195
Joined: Jan 2003
Use Quickbasic.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 6,419
Threads: 74
Joined: Mar 2002
I'd suggest you to begin learning from the beginning
It is like I posted "I want to make Doom IV. How do I do that?"
Posts: 1,845
Threads: 44
Joined: Aug 2002
Yeah, first read yourself into some old dusty books, and then please specify your question.
Posts: 3,368
Threads: 195
Joined: Jan 2003
nooooooo
NO BOOKS just KNOWLEDGE
KNOWLEDGE=pOWER
QuickBASIC=POWER
QuickBASICI Programming = Attainment of Knoweledge!![/b]
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 2,020
Threads: 24
Joined: Jun 2002
"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.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Posts: 1,407
Threads: 117
Joined: Dec 2002
Just try COBOL
Antoni
Posts: 691
Threads: 5
Joined: Apr 2002
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
esus saves.... Passes to Moses, shoots, he scores!
Posts: 1,138
Threads: 211
Joined: Feb 2020
Quote:Just try COBOL
Come now, no talking about this new fangled languages.. now to find my current punch card account program.. ;-)
Posts: 2,020
Threads: 24
Joined: Jun 2002
bleh, you kids and your punch cards *turns metal crank and starts counting iron cylinders*
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry