how to instruct bison that I'm expecting TWO or more terminals

Posted by Vincenzo on Stack Overflow See other posts from Stack Overflow or by Vincenzo
Published on 2010-04-15T07:30:53Z Indexed on 2010/04/15 7:33 UTC
Read the original article Hit count: 323

Filed under:

How can I define a rule in BISON that will state that I need two or more terminals. I use it like this and I get a shift/reduce conflict:

word: LETTER | word LETTER;
words: word word | words word;

What's wrong here? And how to correct it?

© Stack Overflow or respective owner

Related posts about bison