simplified istream arg
This commit is contained in:
parent
d374ad8823
commit
8b2fd1bd4a
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
Scanner scanner(&std::cin);
|
||||
Scanner scanner(std::cin);
|
||||
yy::parser parser(&scanner);
|
||||
return parser.parse();
|
||||
}
|
||||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue