abacus: parse: scanner: define yyterminate
This commit is contained in:
parent
2d437a2583
commit
46a0655e72
|
@ -20,6 +20,9 @@
|
|||
%{
|
||||
// Run at each match
|
||||
#define YY_USER_ACTION loc.columns(yyleng);
|
||||
|
||||
// When getting EOF
|
||||
#define yyterminate() return yy::parser::make_EOF(loc)
|
||||
%}
|
||||
|
||||
blank [ \t\r]
|
||||
|
|
Loading…
Reference in a new issue