Support for C++ syntax?

"Dov Grobgeld" <[email protected]> Tue, 29 Jan 2008 08:24:42 +0200
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/alternative; 
	boundary="----=_Part_18267_28770654.1201587882583"

------=_Part_18267_28770654.1201587882583
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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:

     private foo<bar> baz;
     private foo::bar baz;

Neither the <> nor the :: syntaxes are supported.

Any chance of getting this fixed?

Thanks,
Dov

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.
>
> --
> Jean-Yves Lefort <[email protected]>
>
> --
> to unsubscribe:
> send mail to [email protected] with "unsubscribe gob-list" in the subject
>
>
>

------=_Part_18267_28770654.1201587882583
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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&#39;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:<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp; private foo&lt;bar&gt; baz;<br>&nbsp;&nbsp;&nbsp;&nbsp; private foo::bar baz;<br><br>Neither the &lt;&gt; nor the :: syntaxes are supported.<br><br>Any chance of getting this fixed?<br><br>Thanks,<br>Dov<br><br><div><span class="gmail_quote">On 29/01/2008, <b class="gmail_sendername">Jean-Yves Lefort</b> &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 28 Jan 2008 18:10:20 +0100<br>Jean-Yves Lefort &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br><br>&gt; The attached patch allows to add GCC attributes to methods, using a<br>&gt; syntax borrowed from C#.<br>
<br>There was a lexer conflict between array dimensions and<br>attributes. The fixed patches are attached.<br><br>--<br>Jean-Yves Lefort &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;<br><br>--<br>to unsubscribe:<br>
send mail to <a href="mailto:[email protected]">[email protected]</a> with &quot;unsubscribe gob-list&quot; in the subject<br><br><br></blockquote></div><br>

------=_Part_18267_28770654.1201587882583--


[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]