Mmmm ... In the previous solution above I changed your left recursive rule for table_ident by a right recursive rule. If you don't like this, you can use this alternative solution:
pl@nereida:~/LEyapp/examples$ cat -n dc3.eyp 1 %start column_ident 2 3 %left DUMMY 4 %right '.' 5 6 %% 7 column_ident: 8 table_ident '.' ident 9 | table_ident 10 ; 11 12 table_ident: 13 database_ident '.' ident 14 | database_ident %prec DUMMY 15 ; 16 17 database_ident: 18 ident 19 ; 20 21 ident: 22 IDENT 23 | IDENT_QUOTED 24 ; 25 %%
This solution also avoided conflicts: The only shift-reduce conflict is solved in favor of "shift" (that I supppose is what you need here):
pl@nereida:~/LEyapp/examples$ eyapp -v dc3.eyp pl@nereida:~/LEyapp/examples$ head -15 dc3.output Conflicts: ---------- Conflict in state 1 between rule 4 and token '.' resolved as shift. Rules: ------ 0: $start -> column_ident $end 1: column_ident -> table_ident '.' ident 2: column_ident -> table_ident 3: table_ident -> database_ident '.' ident 4: table_ident -> database_ident 5: database_ident -> ident 6: ident -> IDENT 7: ident -> IDENT_QUOTED
Best

Casiano


In reply to Re: (OT) Yapp rules and resolving reduce/reduce errors by casiano
in thread (OT) Yapp rules and resolving reduce/reduce errors by dragonchild

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.