bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/5] d: add experimental support for the D language


From: Akim Demaille
Subject: [PATCH 2/5] d: add experimental support for the D language
Date: Tue, 4 Dec 2018 21:14:37 +0100

* configure.ac (ENABLE_D): New.
* src/getargs.c (valid_languages): Add d.
---
 configure.ac  | 13 +++++++++----
 src/getargs.c |  1 +
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index cce792f6..f0d5a585 100644
--- a/configure.ac
+++ b/configure.ac
@@ -188,6 +188,15 @@ BISON_C_COMPILER_POSIXLY_CORRECT
 BISON_TEST_FOR_WORKING_CXX_COMPILER
 BISON_CXX_COMPILER_POSIXLY_CORRECT
 
+# D.
+AM_CONDITIONAL([ENABLE_D], [true])
+
+# Java.
+gt_JAVACOMP([1.7], [1.7])
+gt_JAVAEXEC
+AM_CONDITIONAL([ENABLE_JAVA], [test x"$CONF_JAVAC" != x && test x"$CONF_JAVA" 
!= x])
+
+
 AC_ARG_ENABLE([yacc],
   [AC_HELP_STRING([--disable-yacc],
      [do not build a yacc command or an -ly library])],
@@ -278,10 +287,6 @@ AM_MISSING_PROG([AUTOM4TE], [autom4te])
 # Needed by tests/atlocal.in.
 AC_SUBST([GCC])
 
-gt_JAVACOMP([1.7], [1.7])
-gt_JAVAEXEC
-AM_CONDITIONAL([ENABLE_JAVA], [test x"$CONF_JAVAC" != x && test x"$CONF_JAVA" 
!= x])
-
 AC_CONFIG_FILES([Makefile
                  po/Makefile.in
                  doc/yacc.1])
diff --git a/src/getargs.c b/src/getargs.c
index c2f5b032..0d65aea4 100644
--- a/src/getargs.c
+++ b/src/getargs.c
@@ -54,6 +54,7 @@ static struct bison_language const valid_languages[] = {
   /* lang,  skeleton,       ext,     hdr,     add_tab */
   { "c",    "c-skel.m4",    ".c",    ".h",    true },
   { "c++",  "c++-skel.m4",  ".cc",   ".hh",   true },
+  { "d",    "d-skel.m4",    ".d",    ".d",    false },
   { "java", "java-skel.m4", ".java", ".java", false },
   { "", "", "", "", false }
 };
-- 
2.19.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]