Skip to content

Commit

Permalink
d: remove unnecessary imports
Browse files Browse the repository at this point in the history
* data/skeletons/lalr1.d: Here.
  • Loading branch information
adelavais authored and akimd committed Jan 6, 2021
1 parent 5bac3dd commit dc8b164
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions data/skeletons/lalr1.d
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ b4_user_union_members
}
]b4_parse_trace_if([[
import std.conv : to;
yy_symbol_print ("-> $$ =", to!SymbolKind (yyr1_[yyn]), yyval]b4_locations_if([, yyloc])[);]])[
yystack.pop (yylen);
Expand Down Expand Up @@ -664,7 +663,6 @@ m4_popdef([b4_at_dollar])])dnl
/* Shift the error token. */]b4_lac_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])[);]])[
yystate = yyn;
yystack.push (yyn, yylval]b4_locations_if([, yyloc])[);
Expand Down Expand Up @@ -704,7 +702,6 @@ m4_popdef([b4_at_dollar])])dnl
SymbolKind[] yyarg = new SymbolKind[argmax];
int yycount = yysyntaxErrorArguments(yyctx, yyarg, argmax);
string res, yyformat;
import std.string;
switch (yycount)
{
case 1:
Expand Down Expand Up @@ -882,7 +879,6 @@ m4_popdef([b4_at_dollar])])dnl
destroy(yylacStack);
// Reduce until we encounter a shift and thereby accept the token.
]b4_parse_trace_if([[
import std.conv;
yycdebug("LAC: checking lookahead " ~ format("%s", yytoken) ~ ":");]])[
int lacTop = 0;
while (true)
Expand Down Expand Up @@ -1073,7 +1069,6 @@ m4_popdef([b4_at_dollar])])dnl
yyrule - 1, yylno));
/* The symbols being reduced. */
import std.conv : to;
for (int yyi = 0; yyi < yynrhs; yyi++)
yy_symbol_print (format(" $%d =", yyi + 1),
to!SymbolKind (yystos_[yystack.stateAt(yynrhs - (yyi + 1))]),
Expand Down

0 comments on commit dc8b164

Please sign in to comment.