]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Non terminal cannot have string aliases (only tokens appear in error
authorJoe Orton <jorton@apache.org>
Wed, 13 Nov 2019 08:01:13 +0000 (08:01 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 13 Nov 2019 08:01:13 +0000 (08:01 +0000)
commit11ec7b0061b1c31eaeab94b767b5d4af76a24444
treeae9c4f796684857fbc77969daed88ef09740ed10
parentd8306deb92ce5c8e62eea6f4e83015b80cbc8c65
Non terminal cannot have string aliases (only tokens appear in error
messages).  %token is used to define tokens, and %nterm non terminals.
The hidden %type (which was only recently documented) is meant for
both tokens and non terminals.  Yet

    %type <foo> expr "expression"

is actually more or less equivalent to

    %nterm <foo> expr
    %token <foo> "expression"

which is clearly not the intention of the author here.

* server/util_expr_parse.y: Remove useless string-literal only tokens.
Prefer %nterm to %type to avoid this error.

PR: #72
Submitted by: Akim Demaille <akim.demaille gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869724 13f79535-47bb-0310-9956-ffa450edef68
server/util_expr_parse.y