Re: [Vala] Autocomplete with Vala



On 9/27/07, Jan Van Buggenhout <chipzz safehex be> wrote:
On 2007-09-27 20:33:12 (+0000), J?rg Billeter <j bitron ch> wrote:

On Thu, 2007-09-27 at 16:24 -0400, Kevin Kubasik wrote:
Wow! Its great to see the interest! I'll hold up on actual
implementation for a little bit. Probably until I hear something about
the new C parser.

The C parser in gen-introspect is not needed for code completion, you
should just use the information from the VAPI file via libvala.

Ah ok, you don't need to parse the VAPI files yourself. :) What I was
referring to in my previous mail is that with a new parser very subtle
differences in the VAPI files (like indentation or number of spaces or
whatever) could be introduced (even by accident), which would make a
simple parser, which is not built to be robust, possibly fail. But if
this is taken care of by libvala then by all means ignore my previous
comment.
Very cool, I'm not wild about integrating with a C lib, since C isn't
my strongpoint, but I figure if I can get a little help with
P/Invoking the info into lovely (and sexy) objects, thats fine ;) Then
once its in the index its all downhill.



Another thing, I'm trying to determine exact syntactical rules for
vala (primarily where/how they differ from those of C#) any guidance
or documentation in this regard would be awesome.

We're still working on the documentation part, will hopefully be able to
invest more time for that in the following weeks.

Thats completely cool, I understand. However, just for my
planning/sanity, I really need to determine if its worth starting this
by basically copying over the C/C++ support plugin,  or the C# support
plugin. I'm thinking that most of the vala-c# differences are with
behaviour and libs, but when it comes to raw syntax, were talking very
very small changes. If thats the case, I can keep much of the insert
and parsing logic, all I have to do it tear out the
reflection/introspection component, which with the use of libvala,
shouldn't be an overly lengthy process. As monodevelop uses
Gtksourceview, we get syntax highlighting for 'free'. Anyways, I don't
need a complete or super-accurate list, just if there are any big
differences, (or smaller common ones) noting them would be a great
help before I get too deep into an evaluation of the C# parser.



On 9/27/07, Jan Van Buggenhout <chipzz safehex be> wrote:
I think code completion (or is it syntax highlighting?) is being worked
on for anjuta.
Hmmm, I'll investigate, syntax highlighting would be cool but what we
really need is to just get vala syntax highlighting into
gtksourceview, then prettymuch everyone we care about will be able to
inherit it ;)

gtksourceview 2.0.0 already comes with Vala support :)


Great!
Jürg

kr,

Chipzz AKA
Jan Van Buggenhout
--

------------------------------------------------------------------------
                 UNIX isn't dead - It just smells funny
                           Chipzz SafeHex be
------------------------------------------------------------------------
"Baldric, you wouldn't recognize a subtle plan if it painted itself pur-
 ple and danced naked on a harpsicord singing 'subtle plans are here a-
 gain'."



-- 
Cheers,
Kevin Kubasik
http://kubasik.net/blog



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]