Commit e7f02d322a529c100764808a54447b26320dbe5f

M Kelly 2023-08-05T15:29:36

parser: change deprecated `%pure-parser` to `%define api.pure` (#370) This is now supported by byacc since version 2.0 20230516

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/xkbcomp/parser.y b/src/xkbcomp/parser.y
index d4f62c0..7cf2039 100644
--- a/src/xkbcomp/parser.y
+++ b/src/xkbcomp/parser.y
@@ -85,7 +85,7 @@ resolve_keysym(const char *name, xkb_keysym_t *sym_rtrn)
 #define param_scanner param->scanner
 %}
 
-%pure-parser
+%define api.pure
 %lex-param      { struct scanner *param_scanner }
 %parse-param    { struct parser_param *param }