Re: CECIL

Hayden Smith <[email protected]> Mon, 31 May 2010 12:22:39 +1200
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
Thanks for that Eric,

I've grabbed a copy of your lexer and parser grammars from the site
and have modified them for use with Flex and Bison. This is a short
term approach, but it appears to be working.

On Sun, May 30, 2010 at 12:30 AM, Eric Bezault <[email protected]> wrote:
> Hello Hayden,
>
> Cecil is not on the priority list in the Gobo project.
>
> Cecil is used to call Eiffel code from C. So Eiffel code compiled
> with gec cannot be called from a C program. But it can be called
> from C code which is itself called from an Eiffel program. So if
> your program is in Eiffel, before calling the C code you can pass
> to C the address of the Eiffel functions you want to call back
> from C, using Eiffel's $ operator.
>
> On the other hand, if your program is in C, and what you want to
> do is to use the Eiffel code making up the Gobo compiler, you can
> compile the Gobo Eiffel code with ISE's EiffelStudio compiler, and
> then use Cecil (which is supported when the Eiffel code is compiled
> with EiffelStudio) to call Gobo Eiffel's code from C.
>
> --
> Eric Bezault
> mailto:[email protected]
> http://www.gobosoft.com
>
>
> Hayden Smith wrote:
>>
>> I've been putting together a plugin for Qt Creator for working with Gobo
>> Eiffel projects. So far, I've just implemented basic highlighting of
>> reserved keywords, predefined keywords and types defined in ELKS.
>>
>> The next step is to form an abstract syntax tree so I can implement
>> autocompletion and other context-dependent actions. Ideally, I would like to
>> use classes from gec to do this and figured that the best way to work with
>> them was via CECIL. The only reference I could find though was that it
>> hadn't been implemented yet. Is this a feature that's high on the priority
>> list, or are there any other ways of integrating the gec classes that I
>> could use? (Qt is written in C++)
>>
>> Qt uses MIME types to associate editors with file extension patterns with
>> specific editors. I couldn't find a specific type for Eiffel source code, so
>> I just used 'application/eiffel-source'. Is there a specific MIME type I can
>> use or would anyone like to suggest an alternative?
>
>
>
>

------------------------------------------------------------------------------