d: fix interface syntax error

Fix syntax error regarding interface inheritance of the Lexer. It
appeared when the `%code lexer` option was used.

Reported by ledaniel2.
<https://github.com/akimd/bison/issues/84>

* data/skeletons/lalr1.d: Fix syntax.
* tests/d.at: Test it.
This commit is contained in:
Adela Vais
2022-09-19 15:12:39 +02:00
committed by Akim Demaille
parent c025891547
commit be4528096e
2 changed files with 10 additions and 2 deletions

View File

@@ -269,9 +269,10 @@ b4_user_union_members
}
}]])[
]b4_lexer_if([[ private class YYLexer implements Lexer {
]b4_lexer_if([[private class YYLexer: Lexer
{
]b4_percent_code_get([[lexer]])[
}
}
]])[
/** The object doing lexical analysis for us. */
private Lexer yylexer;