[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison patch for POSIX and Yacc compatibility with %union
From: |
Paul Eggert |
Subject: |
Re: Bison patch for POSIX and Yacc compatibility with %union |
Date: |
13 Jan 2003 12:30:59 -0800 |
Akim Demaille <address@hidden> writes:
> I find this patch to be quite hard to understand. Why did you chose
> to allow the identifier at the scanner level? Why not having accepted
> this extension in the grammar instead?
Because Yacc and older Bisons accept an arbitrary sequence of C tokens
(other than '}' and '{') between '%union' and '{'. I presumed that
one might want something other than a single C token, perhaps if one
is generating a parser in Objective C or C++, languages that I don't
know in every detail.
That is why I installed a conservative change (i.e., do it the way
that Bison used to do it) rather than a small change (i.e., make the
minimal change needed to support that particular grammar). If we can
get experts in C++ and Objective C to sign off on a smaller change,
though, that would be better.
- Re: Bison patch for POSIX and Yacc compatibility with %union, Akim Demaille, 2003/01/13
- Re: Bison patch for POSIX and Yacc compatibility with %union,
Paul Eggert <=
- Re: POSIX_ME_HARDER (Was: Bison patch for POSIX and Yacc compatibility with %union), Akim Demaille, 2003/01/15
- Re: POSIX_ME_HARDER (Was: Bison patch for POSIX and Yacc compatibility with %union), Paul Eggert, 2003/01/16
- Re: %union foo bar baz and others { ... }, Akim Demaille, 2003/01/19
- Re: %union foo bar baz and others { ... }, Paul Eggert, 2003/01/20
- Re: %union foo bar baz and others { ... }, Akim Demaille, 2003/01/21
- Re: %union foo bar baz and others { ... }, Paul Eggert, 2003/01/22
- Re: %union foo bar baz and others { ... }, Akim Demaille, 2003/01/22
- Re: %union foo bar baz and others { ... }, Paul Eggert, 2003/01/22
- Re: ending ; (Was: POSIX_ME_HARDER), Akim Demaille, 2003/01/21
- Re: ending ; (Was: POSIX_ME_HARDER), Paul Eggert, 2003/01/22