Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code translator
#1
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.
Reply
#2
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.
Reply
#3
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?"
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#4
Yeah, first read yourself into some old dusty books, and then please specify your question.
Reply
#5
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.
Reply
#6
"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
Reply
#7
Just try COBOL Big Grin
Antoni
Reply
#8
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!
Reply
#9
Quote:Just try COBOL Big Grin

Come now, no talking about this new fangled languages.. now to find my current punch card account program.. ;-)
Reply
#10
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)