simplified istream arg

This commit is contained in:
bronku 2025-11-21 10:57:15 +01:00
parent d374ad8823
commit 8b2fd1bd4a
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
int main()
{
Scanner scanner(&std::cin);
Scanner scanner(std::cin);
yy::parser parser(&scanner);
return parser.parse();
}

View file

@ -10,7 +10,7 @@
class Scanner : public yyFlexLexer
{
public:
Scanner(std::istream *in) : yyFlexLexer(in), yylval(nullptr) {}
Scanner(std::istream &in) : yyFlexLexer(&in), yylval(nullptr) {}
int lex(yy::parser::semantic_type *lval)
{