Re: [Vala] Autocomplete with Vala



On Thu, 2007-09-27 at 17:16 -0400, Kevin Kubasik wrote:
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:
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.

The basic syntax is very similar to the C# syntax, however there are
some enhancements / changes at various places. For example namespace
prefix in type declarations, see at the bottom of [1], construct
properties, see [2], differences in the declaration of interface
members, see [2], differences in object creation, see [3], signal vs.
event declaration syntax, see [4], or non-null types, see [5].

Jürg

[1] http://www.vala-project.org/doc/vala/classes.html
[2] http://live.gnome.org/Vala/Syntax
[3] http://live.gnome.org/Vala/Syntax/ObjectConstruction
[4] http://live.gnome.org/Vala/Signals
[5] http://live.gnome.org/Vala/FAQ




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