[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to change default outcome of shift/reduce conflict?
From: |
Hans Aberg |
Subject: |
Re: How to change default outcome of shift/reduce conflict? |
Date: |
Sat, 12 Jan 2002 19:40:05 +0100 |
At 14:49 +0100 2002/01/12, Akim Demaille wrote:
>| or_expr:
>| expr {}
>| | or_expr OR or_expr {}
>|
>| ...
>| ANSWER expr WITH or_expr
>
>Hans is right: this is the kind of grammar transformation you ought to
>do if you were using a dumb tool. But do not do that: you are going
>to make your grammar much more complex, harder to maintain,
Who has said anything about grammar transformation?
>and you
>will even loose performances.
What performance loss do you have in your mind?
>Just as nobody would ever program a expr/term/factor grammar for
>arithmetics in LR,
Are you suggesting that that example should be removed from the Bison manual?
>...you should avoid the solution above.
Of, course, the question is why?
Hans Aberg
- How to change default outcome of shift/reduce conflict?, Anthony DeRobertis, 2002/01/11
- Re: How to change default outcome of shift/reduce conflict?, Hans Aberg, 2002/01/11
- Re: How to change default outcome of shift/reduce conflict?, Anthony DeRobertis, 2002/01/12
- Re: How to change default outcome of shift/reduce conflict?, Hans Aberg, 2002/01/12
- Re: How to change default outcome of shift/reduce conflict?, Anthony DeRobertis, 2002/01/12
- Re: How to change default outcome of shift/reduce conflict?, Akim Demaille, 2002/01/12
- Re: How to change default outcome of shift/reduce conflict?,
Hans Aberg <=
- Re: How to change default outcome of shift/reduce conflict?, Anthony DeRobertis, 2002/01/12
- Re: How to change default outcome of shift/reduce conflict?, Hans Aberg, 2002/01/12
- Re: How to change default outcome of shift/reduce conflict?, Akim Demaille, 2002/01/13
- Re: How to change default outcome of shift/reduce conflict?, Hans Aberg, 2002/01/13
- Re: How to change default outcome of shift/reduce conflict?, Anthony DeRobertis, 2002/01/14
- Re: How to change default outcome of shift/reduce conflict?, Hans Aberg, 2002/01/14
- Re: How to change default outcome of shift/reduce conflict?, Anthony DeRobertis, 2002/01/14
- Re: How to change default outcome of shift/reduce conflict?, Hans Aberg, 2002/01/14
- Re: How to change default outcome of shift/reduce conflict?, Anthony DeRobertis, 2002/01/15
- Re: How to change default outcome of shift/reduce conflict?, Hans Aberg, 2002/01/15