aboutsummaryrefslogtreecommitdiff
path: root/gdb/d-lang.h
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2014-06-19 19:29:26 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2014-06-19 19:30:20 +0100
commit3ed9baed43c5253b2e88e5576773957432e268c4 (patch)
tree3583d0c119cbbe7e8fb62b45cf20a166cb64e9bb /gdb/d-lang.h
parent78c164b00654c7f422694035bc0e1817f90c86b5 (diff)
downloadgdb-3ed9baed43c5253b2e88e5576773957432e268c4.zip
gdb-3ed9baed43c5253b2e88e5576773957432e268c4.tar.gz
gdb-3ed9baed43c5253b2e88e5576773957432e268c4.tar.bz2
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.
Diffstat (limited to 'gdb/d-lang.h')
-rw-r--r--gdb/d-lang.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/d-lang.h b/gdb/d-lang.h
index ca9126b..216fd03 100644
--- a/gdb/d-lang.h
+++ b/gdb/d-lang.h
@@ -54,6 +54,12 @@ struct builtin_d_type
struct type *builtin_dchar;
};
+/* Defined in d-exp.y. */
+
+extern int d_parse (struct parser_state *);
+
+extern void d_error (char *);
+
/* Defined in d-lang.c */
extern const char *d_main_name (void);