1. looking for a utility
- Posted by silvercoon Sep 18, 2009
- 1274 views
A few years back (running Win98, now XP) I found a utility in the archive that translated source code from other programming languages into Euphoria source code. Unfortunately that drive now has a corrupted registry, & no system I've installed it in has been able to detect it. I can't remember the name of the program or its creator, but I do remember his last name was Hispanic. (I don't have a problem with that, it's just one of the things I remember that may help find it).
2. Re: looking for a utility
- Posted by ChrisB (moderator) Sep 18, 2009
- 1359 views
There are a couple of (Q)basic translation routines in the archive
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=translate
Chris
3. Re: looking for a utility
- Posted by silvercoon Sep 18, 2009
- 1317 views
Thanks, but I've already got those (I mean Cuny's QB utility, & J. Brown's BASIC one). I thought the utility I'm thinking of was more generic, as in the ability to recognize C code (but I could be wrong).
Although I haven't used it yet, doesn't the Euphoria to C translator work in reverse, too?
Thanks for responding.
4. Re: looking for a utility
- Posted by Critic Sep 18, 2009
- 1388 views
Although I haven't used it yet, doesn't the Euphoria to C translator work in reverse, too?
Sure, but you have to reverse the C code by hand:
int main() { return 0; }
Becomes:
} ;0 nruter { )(niam tni
(Irony off.)
5. Re: looking for a utility
- Posted by jeremy (admin) Sep 18, 2009
- 1262 views
Although I haven't used it yet, doesn't the Euphoria to C translator work in reverse, too?
No, it does not, it converts Euphoria to C only.
Jeremy
6. Re: looking for a utility
- Posted by jimcbrown (admin) Sep 18, 2009
- 1302 views
I thought the utility I'm thinking of was more generic, as in the ability to recognize C code (but I could be wrong).
Although I haven't used it yet, doesn't the Euphoria to C translator work in reverse, too?
Thanks for responding.
The Euphoria to C translator does not work in reverse. It can't convert C code.
The only tool I can recall off the top of my head that does what you are saying is David Cuny's Euphoria SWIG plugin, which would use SWIG to convert C and C header files into Euphoria code. I know there were a few other projects that did the same thing, but I don't remember what they were.
7. Re: looking for a utility
- Posted by useless Sep 19, 2009
- 1213 views
There are a couple of (Q)basic translation routines in the archive
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=translate
Chris
ORAC didn't come up in that search.
useless
8. Re: looking for a utility
- Posted by silvercoon Sep 19, 2009
- 1150 views
The only other thing I remember about the utility is that I translated a freeware game (very buggy) into Euphoria. I'm reasonably sure that it had been written in some form of C (but memory may fail me). Strangely enough, it worked, even though the program was encrypted, so it came out encrypted. Naturally, when I tried to run it, it aborted with an error. If it had been encoded to translate only QB files, wouldn't it refuse to load ones written in C?