Re: Euphoria to C translator querie

new topic     » goto parent     » topic index » view thread      » older message » newer message

Craig Woolmer writes:
>Hi all,
> Does anyone know who the Eurphoria to C translator actually works.
> How does it convert the code.
> I need to know because I want to make a Basic to C converter and vise
versa.
> Thnaks,
> Craig Woolmer

If you want to make it in Euphoria you have two choices :
1) Your own parser. You must create a parser that will
read the file, split it into tokens.

2) Use David Cuny's Ox. You will create a grammar specifiation
and it will generate a parser in Eu for you.

Then you will read the tokens and translate them to the other
language.

You can look at David Cuny's Euphoria to Java
(http://www.lanset.com/dcuny/java.htm) for inspiration.

The translation to Basic -> C might be easy, but
C -> Basic is more difficult since you have to write
all the wild things C has. (unions, pointers etc.)

Regards,
    Martin Stachon

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu