Re: Pseudocode translator
- Posted by Irv Mullins <irv at ELLIJAY.COM> Mar 22, 1998
- 710 views
At 05:05 AM 3/22/98 +0000,mdeland wrote: >Mike Sabal wrote: >> Just out of curiosity, would anybody be interested in program that could take >> pseudocode and translate it into an optimized(sp?) >> Euphoria .ex .exw file? > .the way I see it, as soon as you 'define' pseudocode, >and thus limiting the choices of verbiage available to a programmer >or even the curious novice, you have...in effect...just created a >"High-Level" programming language instead of a true "Natural >Language" environment...*shrug* just the way I see it... >it's a catch-22:if you define it, it ain't what you want, and if you >don't define it, it ain't what you want either... >*ducks a few flames that whizz by* No flames here, you're right. However, I notice that I write a *lot* of pseudocode when programming Euphoria: The first pass at a function might look like: function Lookup (object target, object list) -- for each item on the list -- check for list[INDEX] = target[INDEX] -- and list[NAME] = target[NAME] -- if found, then return list[item] -- otherwise return -1 end function To add the actual code is pretty simple, and I've already written both pseudocode and documentation. Isn't the worst habit to get into... ------------------------------------------------------ Visit my Euphoria programming web site: http://www.mindspring.com/~mountains ------------------------------------------------------