This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] Initial pass at D language expression parser support.
- From: Pedro Alves <palves at redhat dot com>
- To: Iain Buclaw <ibuclaw at gdcproject dot org>, gdb-patches at sourceware dot org
- Date: Tue, 17 Jun 2014 11:22:27 +0100
- Subject: Re: [PATCH v2] Initial pass at D language expression parser support.
- Authentication-results: sourceware.org; auth=none
- References: <CABOHX+cZzCNQAwRVnMhxBRH6-cAKx95+OdhfJ50ZtmZA+FVJJw at mail dot gmail dot com>
On 06/05/2014 12:43 AM, Iain Buclaw wrote:
> Initial pass at D language expression parser support.
>
> 2014-06-05 Iain Buclaw <ibuclaw@gdcproject.org>
>
> * Makefile.in (SFILES): Add d-exp.y.
> (YYFILES): Add d-exp.c.
> (YYOBJ): Add d-exp.o.
> (local-maintainer-clean): Delete d-exp.c.
> * d-exp.y: New file.
> * d-lang.h (d_parse): New declaration.
> (d_error): New declaration.
> * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
> Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
> PREC_ORDER operators.
> (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
>
> 2014-06-05 Iain Buclaw <ibuclaw@gdcproject.org>
>
> * gdb.dlang/expression.exp: New file.
As this is pretty much self contained in the D support code, and
doesn't touch core GDB, I think it should just be pushed in.
FWIW, I quickly skimmed it and nothing raised my eyebrows.
Thus, OK.
Thanks,
--
Pedro Alves