Initial pass at D language expression parser support.
authorIain Buclaw <ibuclaw@gdcproject.org>
Thu, 19 Jun 2014 18:29:26 +0000 (19:29 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 19 Jun 2014 18:30:20 +0000 (19:30 +0100)
commit3ed9baed43c5253b2e88e5576773957432e268c4
tree3583d0c119cbbe7e8fb62b45cf20a166cb64e9bb
parent78c164b00654c7f422694035bc0e1817f90c86b5
Initial pass at D language expression parser support.

gdb/
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.

gdb/testsuite/
2014-06-05  Iain Buclaw  <ibuclaw@gdcproject.org>

* gdb.dlang/expression.exp: New file.
gdb/ChangeLog
gdb/Makefile.in
gdb/d-exp.y [new file with mode: 0644]
gdb/d-lang.c
gdb/d-lang.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dlang/expression.exp [new file with mode: 0644]