1. Euphoria To C Translator - Official Release

I've updated the Euphoria To C Translator for all 
platforms and C compilers. It's now called the 
Official Release for 2.2.  

It has a couple of enhancements and a couple 
of bug fixes compared to last month's beta-2 release. 
The details are at:

http://www.RapidEuphoria.com/ec.htm

I intend to work on the namespace issue and
some other things now, but don't hesitate to send
me bug reports on the Translator. I'll eventually
update the Translator again for 2.3. It will be a free
upgrade for all registered users of the Translator.

You can download the Official Release from:

http://www.rapideuphoria.com/v20.htm#translator

If you registered for the Complete Edition of the Translator,
you can use the same instructions as before. Send me
an e-mail if you've lost the instructions, and include some 
personal information such as your order#, city or street address 
for verification.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » topic index » view message » categorize

2. Re: Euphoria To C Translator - Official Release

Dear Robert,

> I intend to work on the namespace issue and
> some other things now ...

Let me tell you - now that you have finally decided to do something
really useful for a change (insert obligatory smilie here) - about a
scheme I am using in one of my private, incredibly slowly moving
projects. I do not think it's anything terribly new - the same or very
similar schemes were probably proposed often enough in the past - but
I like it a lot. It is very simple, it requires just two or three new
words and it does not break any existing code...

To import a file into the current namespace I use this simple
extension of the include statement:

    include  <filename>  as  <label>

For example:

    include  myfont.e  as  font

In the imported file, the elements intended for export (constants,
variables, functions and procedures are marked as such by 'export'
label, the same way as 'global' is used.

For example:

    export integer x, y, z

    export function abc(...)
    ...
    end function

Then, in the 'current' namespace, the common enough dot notation can
be
used to import these elements, e.g.:

    x1 = font.x
    x2 = font.abc(...)
    ...

The beauty of the scheme is, apart from its simplicity, the global
identifiers can still be used in their traditional sense. But, of
course, it would be sensible to restrict their future use to 'system'
items only, things like get(), value(), true, false, etc.

By the way, an embellishment of the form

    using <label>
        ...
    end using

so that the previous example becomes

    using font
        x1 = x
        x2 = abc(...)
        ...
    end using

would also be a nice convenience.

jiri

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria To C Translator - Official Release

Dear Eu users:

Robert Craig wrote:

> I've updated the Euphoria To C Translator for all 
> platforms and C compilers. It's now called the 
> Official Release for 2.2.
.....
> 
> You can download the Official Release from:
> 
> http://www.rapideuphoria.com/v20.htm#translator
.....

The Russian documentation on this subject available at:

http://www.private.peterlink.ru/kinz/e2c_docr.zip

Regards,
Igor Kachan
kinz at peterlink.ru

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria To C Translator - Official Release

Jiri Babor writes:
<namespace suggestions>

Thanks.
I'll try to come up with a namespace proposal 
in the next couple of weeks. I'll post it to this list
before I start coding anything.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu