https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7b2006521156b54192ce1…
commit 7b2006521156b54192ce1ef8dfaf3aab20650a1d
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Dec 26 14:22:43 2020 +0100
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sat Dec 26 14:22:43 2020 +0100
[WIDL] Fix a deprecation message and hints on how to build a new scanner and parser
---
sdk/tools/widl/parser.y | 2 +-
sdk/tools/widl/readme.txt | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/sdk/tools/widl/parser.y b/sdk/tools/widl/parser.y
index 622e742da19..63b70e9e47c 100644
--- a/sdk/tools/widl/parser.y
+++ b/sdk/tools/widl/parser.y
@@ -321,7 +321,7 @@ static typelib_t *current_typelib;
%right '!' '~' CAST PPTR POS NEG ADDRESSOF tSIZEOF
%left '.' MEMBERPTR '[' ']'
-%error-verbose
+%define parse.error verbose
%%
diff --git a/sdk/tools/widl/readme.txt b/sdk/tools/widl/readme.txt
new file mode 100644
index 00000000000..4b7a6216dcf
--- /dev/null
+++ b/sdk/tools/widl/readme.txt
@@ -0,0 +1,5 @@
+To generate a new scanner and parser run:
+
+flex --header-file=parser.yy.h --outfile=parser.yy.c parser.l
+
+bison --defines=parser.tab.h --name-prefix=parser_ parser.y