Passing a pointer to Scanner instead of reference.
This way, we can handle std::cin easier.
This commit is contained in:
parent
0cf45c87b4
commit
eba0efb878
|
@ -30,7 +30,7 @@ namespace monicelli {
|
|||
|
||||
class Scanner: public yyFlexLexer {
|
||||
public:
|
||||
Scanner(std::istream &in): yyFlexLexer(&in) {}
|
||||
Scanner(std::istream *in): yyFlexLexer(in) {}
|
||||
|
||||
int yylex(Parser::semantic_type *lval, Parser::location_type *loc) {
|
||||
this->lval = lval;
|
||||
|
|
Reference in New Issue
Block a user