Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3946022
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:05:02+00:00 2026-05-20T01:05:02+00:00

I searched the man page and found this. But… what does it mean? without

  • 0

I searched the man page and found this. But… what does it mean? without it my bison file doesnt compile and i would like to know why it doesnt (admittedly i have a few shift/reduce and reduce/reduce errors. But that shouldnt stop it?).

Does anyone have a link to what it actually does or why it would not compile my code?

   -y, --yacc
          emulate POSIX Yacc
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:05:03+00:00Added an answer on May 20, 2026 at 1:05 am

    By default, Bison generates one set of file names, but POSIX requires a different set of file names. The -y flag makes Bison generate the POSIX names instead of its own set of names.

    For input file name grammar.y, Bison normally produces grammar.tab.c (and grammar.tab.h if you request the header). With the -y flag, Bison produces y.tab.c and y.tab.h.

    Note that the -y flag should only affect the output file names. It should have no effect on what is acceptable as a grammar, nor on the number of conflicts.

    Interestingly, on the same grammar, the output is slightly different; the action lines have an empty statement in them:

    $ diff y.tab.c grammar.tab.c
    558c558
    < #line 559 "y.tab.c"
    ---
    > #line 559 "grammar.tab.c"
    2828c2828
    <     { stmt_type = STMT_NONE; }
    ---
    >     { stmt_type = STMT_NONE; ;}
    2833c2833
    <     { stmt_type = STMT_LOAD; }
    ---
    >     { stmt_type = STMT_LOAD; ;}
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I searched for this and found Maudite's question about text editors but they were
I searched and found this question but did not like the answer. Is there
Searched for a while, but I can't figure out why this would raise a
I searched SO for a fix for this, found it, but my implementation seems
I searched google but couldn't find an answer to this rather simple question. I
I searched the web for examples of draggable Swing components, but I found either
I googled and searched in the boost's man, but didn't find any examples. May
Searched around and could not find a response for this. Does anybody know of
I have searched and searched for a solution to this problem, but it seems
Searched for answer for this but couldn't find anything. The closest I could find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.