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 6172053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:19:37+00:00 2026-05-23T23:19:37+00:00

What happen is there is a specific case where after analyzing the AST i

  • 0

What happen is there is a specific case where after analyzing the AST i will know if there is an error or not when the rule is finished. I tried yyerror(“blah”) with no luck.

Because i cant tell it there is an error it finishes another rule and now has a reduce/reduce conflict. This is annoying because i KNOW when one of them is invalid without looking at the other but the user has to suffer bc i dont know how to say ignore this branch bc its invalid

How do i fix this problem?

  • 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-23T23:19:38+00:00Added an answer on May 23, 2026 at 11:19 pm

    You want YYERROR not yyerror — putting YYERROR in an action causes the parser to make the action a syntax error, and go into error recovery mode (if you have any error recovery actions in your parser — otherwise this is more or less equivalent to YYABORT). yyerror is a routine that bison calls with error messages — the default implementation is to print the error message — but is has nothing (specifically) to do with parsing or syntax errors.

    Note that this has no relation to any reduce-reduce (or shift-reduce) conflicts — conflicts are not errors, they are things in your grammar that make it not-LALR(1), so that the bison generated parser can’t reliably recognize it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone happen to know if there is a token I can add to
Consider the Java code below, what would happen if there were no paintComponent method
Is there some agreed upon algorithm of what is supposed to happen when, in
Is there a "very bad thing" that can happen &&= and ||= were used
I want to schedule events to happen for my users. Is there an efficient
Is there any reason for a PHP script to return a fatal error of:
Is there a way to prevent a specific file from being opcode cached with
There is a certain job that will insert and update this table called ContactInfo
I'm trying to troubleshoot an issue on a client's site. There is one specific
I am looking for networking designs and tricks specific to games. I know about

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.