[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
c++, d, java: remove yyerrcode
From: |
Akim Demaille |
Subject: |
c++, d, java: remove yyerrcode |
Date: |
Sun, 1 Dec 2019 07:33:46 +0100 |
commit 6f92a7f664470b87d65a9800fc50baa067308fc9
Author: Akim Demaille <address@hidden>
Date: Sat Nov 30 17:27:17 2019 +0100
c++, d, java: remove yyerrcode
It is not used at all. We will remove it also from yacc.c, but
later (see TODO).
* data/skeletons/lalr1.cc, data/skeletons/lalr1.d,
* data/skeletons/lalr1.java (yyerrcode_):
Remove.
diff --git a/data/skeletons/lalr1.cc b/data/skeletons/lalr1.cc
index 121b524d..0c249aa6 100644
--- a/data/skeletons/lalr1.cc
+++ b/data/skeletons/lalr1.cc
@@ -405,7 +405,6 @@ m4_define([b4_shared_declarations],
yynnts_ = ]b4_nterms_number[, ///< Number of nonterminal symbols.
yyfinal_ = ]b4_final_state_number[, ///< Termination state number.
yyterror_ = 1,
- yyerrcode_ = 256,
yyntokens_ = ]b4_tokens_number[ ///< Number of tokens.
};
diff --git a/data/skeletons/lalr1.d b/data/skeletons/lalr1.d
index 9885ebd9..cfb944fc 100644
--- a/data/skeletons/lalr1.d
+++ b/data/skeletons/lalr1.d
@@ -838,7 +838,6 @@ m4_popdef([b4_at_dollar])])dnl
private static immutable int yyempty_ = -2;
private static immutable int yyfinal_ = ]b4_final_state_number[;
private static immutable int yyterror_ = 1;
- private static immutable int yyerrcode_ = 256;
private static immutable int yyntokens_ = ]b4_tokens_number[;
private static immutable int yyuser_token_number_max_ =
]b4_user_token_number_max[;
diff --git a/data/skeletons/lalr1.java b/data/skeletons/lalr1.java
index 08e8f58b..239f0052 100644
--- a/data/skeletons/lalr1.java
+++ b/data/skeletons/lalr1.java
@@ -1033,7 +1033,6 @@ b4_dollar_popdef[]dnl
private static final int yyempty_ = -2;
private static final int yyfinal_ = ]b4_final_state_number[;
private static final int yyterror_ = 1;
- private static final int yyerrcode_ = 256;
private static final int yyntokens_ = ]b4_tokens_number[;
private static final int yyuser_token_number_max_ =
]b4_user_token_number_max[;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- c++, d, java: remove yyerrcode,
Akim Demaille <=