parser: add some notes about byacc working
authorRan Benita <ran234@gmail.com>
Sat, 28 Sep 2013 22:41:52 +0000 (01:41 +0300)
committerRan Benita <ran234@gmail.com>
Sat, 28 Sep 2013 22:41:52 +0000 (01:41 +0300)
commit8e14bff0a10de4cfbfd31581be8bf8d791fd216e
tree9d62322b90081a526e4c48bf1edbf96e590f2e71
parent8dcb30e5644c424f02af630d9fe097288b71f758
parser: add some notes about byacc working

We now also work with byacc (version tested: 20130925) which some people
prefer, perhaps due to its license (public domain) or performance
(haven't compared).

When using byacc, currently the following warning comes up:
    src/xkbcomp/parser.c:954:14: warning: declaration shadows a variable in the global scope [-Wshadow]
        YYSTYPE  yylval;
                ^
    src/xkbcomp/parser.c:37:20: note: expanded from macro 'yylval'
    #define yylval     _xkbcommon_lval
                    ^
    ./src/xkbcomp/parser.h:96:16: note: previous declaration is here
    extern YYSTYPE _xkbcommon_lval;

This is due to a bug in byacc - it shouldn't output that extern line in
%pure-parser mode. So the warning stays.

Signed-off-by: Ran Benita <ran234@gmail.com>
configure.ac
src/xkbcomp/parser.y