Re: Support for C++ syntax?

Jean-Yves Lefort <[email protected]> Tue, 29 Jan 2008 12:01:44 +0100
Newsgroups gmane.comp.gnome.devtools.gob.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.

[email protected]
Content-Type: multipart/signed; protocol="application/pgp-signature";
 micalg="PGP-SHA1";
 boundary="Signature=_Tue__29_Jan_2008_12_01_45_+0100_E6Yo5ZrOUfW5WytT"

--Signature=_Tue__29_Jan_2008_12_01_45_+0100_E6Yo5ZrOUfW5WytT
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, 29 Jan 2008 08:24:42 +0200
"Dov Grobgeld" <[email protected]> wrote:

> I am using gob quite a lot with a Gtk+ and C++. Unfortunately gob barfs on
> some C++ syntax that it should just pass along to the cc and h files.
> Currently I'm able to work around this by introducing typedefs in the
> private-h section and then using them in the class definition, but I see =
no
> reason why the parser should not support them. The constructs in question
> are:
>=20
>      private foo<bar> baz;
>      private foo::bar baz;
>=20
> Neither the <> nor the :: syntaxes are supported.
>=20
> Any chance of getting this fixed?

The namespace syntax is supported if you use the --for-cpp command
line option. The template syntax isn't. Supporting it properly would
involve moving the handling of C/C++ types from the lexer to the
parser, to be able to handle more complex types such as:

	A::B<C, D::E::F, G<H::I<J, K> > >

> On 29/01/2008, Jean-Yves Lefort <[email protected]> wrote:
> >
> > On Mon, 28 Jan 2008 18:10:20 +0100
> > Jean-Yves Lefort <[email protected]> wrote:
> >
> > > The attached patch allows to add GCC attributes to methods, using a
> > > syntax borrowed from C#.
> >
> > There was a lexer conflict between array dimensions and
> > attributes. The fixed patches are attached.

--=20
Jean-Yves Lefort <[email protected]>

--Signature=_Tue__29_Jan_2008_12_01_45_+0100_E6Yo5ZrOUfW5WytT
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHnweiyzD7UaO4AGoRAjpnAJ9hkacIhSnb2evUVUOSukh+SH2AjACbBHyl
uJNUFSYNo+3JShNwxaWP0wk=
=Bb7z
-----END PGP SIGNATURE-----

--Signature=_Tue__29_Jan_2008_12_01_45_+0100_E6Yo5ZrOUfW5WytT--


[email protected]
Content-Type: text/plain; charset=us-ascii; name="footer.txt"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

--
to unsubscribe:
send mail to [email protected] with "unsubscribe gob-list" in the subject

[email protected]