diff --git a/tools/perf/util/expr.y b/tools/perf/util/expr.y index 432b8560cf51c8bf2d751d409d34fe516ade2582..e7bd19c384aedc17e83e0ad1e2535829900475b6 100644 --- a/tools/perf/util/expr.y +++ b/tools/perf/util/expr.y @@ -10,7 +10,8 @@ #define MAXIDLEN 256 %} -%pure-parser +%define api.pure full + %parse-param { double *final_val } %parse-param { struct parse_ctx *ctx } %parse-param { const char **pp } diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y index da8fe57691b8cd0d4c1c22d0cf0fa62595385ac5..8d7578be708a21fe0970d40ed9a71229f4e7c6fd 100644 --- a/tools/perf/util/parse-events.y +++ b/tools/perf/util/parse-events.y @@ -1,4 +1,4 @@ -%pure-parser +%define api.pure full %parse-param {void *_parse_state} %parse-param {void *scanner} %lex-param {void* scanner}