mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 02:33:03 +00:00
d: remove unnecessary imports
* data/skeletons/lalr1.d: Here.
This commit is contained in:
committed by
Akim Demaille
parent
5bac3ddcee
commit
dc8b16424a
@@ -382,7 +382,6 @@ b4_user_union_members
|
|||||||
}
|
}
|
||||||
|
|
||||||
]b4_parse_trace_if([[
|
]b4_parse_trace_if([[
|
||||||
import std.conv : to;
|
|
||||||
yy_symbol_print ("-> $$ =", to!SymbolKind (yyr1_[yyn]), yyval]b4_locations_if([, yyloc])[);]])[
|
yy_symbol_print ("-> $$ =", to!SymbolKind (yyr1_[yyn]), yyval]b4_locations_if([, yyloc])[);]])[
|
||||||
|
|
||||||
yystack.pop (yylen);
|
yystack.pop (yylen);
|
||||||
@@ -664,7 +663,6 @@ m4_popdef([b4_at_dollar])])dnl
|
|||||||
|
|
||||||
/* Shift the error token. */]b4_lac_if([[
|
/* Shift the error token. */]b4_lac_if([[
|
||||||
yylacDiscard("error recovery");]])[]b4_parse_trace_if([[
|
yylacDiscard("error recovery");]])[]b4_parse_trace_if([[
|
||||||
import std.conv : to;
|
|
||||||
yy_symbol_print ("Shifting", to!SymbolKind (yystos_[yyn]), yylval]b4_locations_if([, yyloc])[);]])[
|
yy_symbol_print ("Shifting", to!SymbolKind (yystos_[yyn]), yylval]b4_locations_if([, yyloc])[);]])[
|
||||||
yystate = yyn;
|
yystate = yyn;
|
||||||
yystack.push (yyn, yylval]b4_locations_if([, yyloc])[);
|
yystack.push (yyn, yylval]b4_locations_if([, yyloc])[);
|
||||||
@@ -704,7 +702,6 @@ m4_popdef([b4_at_dollar])])dnl
|
|||||||
SymbolKind[] yyarg = new SymbolKind[argmax];
|
SymbolKind[] yyarg = new SymbolKind[argmax];
|
||||||
int yycount = yysyntaxErrorArguments(yyctx, yyarg, argmax);
|
int yycount = yysyntaxErrorArguments(yyctx, yyarg, argmax);
|
||||||
string res, yyformat;
|
string res, yyformat;
|
||||||
import std.string;
|
|
||||||
switch (yycount)
|
switch (yycount)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
@@ -882,7 +879,6 @@ m4_popdef([b4_at_dollar])])dnl
|
|||||||
destroy(yylacStack);
|
destroy(yylacStack);
|
||||||
// Reduce until we encounter a shift and thereby accept the token.
|
// Reduce until we encounter a shift and thereby accept the token.
|
||||||
]b4_parse_trace_if([[
|
]b4_parse_trace_if([[
|
||||||
import std.conv;
|
|
||||||
yycdebug("LAC: checking lookahead " ~ format("%s", yytoken) ~ ":");]])[
|
yycdebug("LAC: checking lookahead " ~ format("%s", yytoken) ~ ":");]])[
|
||||||
int lacTop = 0;
|
int lacTop = 0;
|
||||||
while (true)
|
while (true)
|
||||||
@@ -1073,7 +1069,6 @@ m4_popdef([b4_at_dollar])])dnl
|
|||||||
yyrule - 1, yylno));
|
yyrule - 1, yylno));
|
||||||
|
|
||||||
/* The symbols being reduced. */
|
/* The symbols being reduced. */
|
||||||
import std.conv : to;
|
|
||||||
for (int yyi = 0; yyi < yynrhs; yyi++)
|
for (int yyi = 0; yyi < yynrhs; yyi++)
|
||||||
yy_symbol_print (format(" $%d =", yyi + 1),
|
yy_symbol_print (format(" $%d =", yyi + 1),
|
||||||
to!SymbolKind (yystos_[yystack.stateAt(yynrhs - (yyi + 1))]),
|
to!SymbolKind (yystos_[yystack.stateAt(yynrhs - (yyi + 1))]),
|
||||||
|
|||||||
Reference in New Issue
Block a user