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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:12:13+00:00 2026-06-17T09:12:13+00:00

Are there any special samples pack for testing parser grammar(C/C++, yacc or something else

  • 0

Are there any special samples pack for testing parser grammar(C/C++, yacc or something else grammar), that will cover most of C/C++ grammar features starting from simple expressions like:

int a;
int b;
b=a+a+b-a+b;
printf("hello");

or

template<class R, class T,
    class B1, class B2,
    class A1, class A2, class A3>
    _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf2)<R, T, B1, B2>, typename _bi::list_av_3<A1, A2, A3>::type>
    BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2), A1 a1, A2 a2, A3 a3)
{
    typedef _mfi::BOOST_BIND_MF_NAME(mf2)<R, T, B1, B2> F;
    typedef typename _bi::list_av_3<A1, A2, A3>::type list_type;
    return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3));
}

with difinitions what type of test it is(like: “this test is for checking work with pointer’s”).

  • 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-06-17T09:12:14+00:00Added an answer on June 17, 2026 at 9:12 am

    GCC has a lot of test-cases in the source, so if your grammar is open source under GPL, then you can use that.

    Otherwise, try finding large open source projects and just feeding that through it – you’ll obviously have to verify that it is correct, and since no two compilers produce the same output [whatever stage you look at it], you will have to figure out “what it’s supposed to be” yourself. Or write something that can translate the intermediate files from GCC to the same format as your grammar output, and compare…

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

Sidebar

Related Questions

i want that during marshelling special character should escape, is there any way to
Is there any way I can set a formatter on models that will convert
Is there any special character that cannot be a part of the path in
Are there any special rules that apply to the unary & operator? For example,
is there any special input type in HTML that is designed to only display
Is there any special function to parse a .conf file in php like parse_ini_file()
Can anyone please tell me is there any special requirement to use either EXTERN
this is just a to be sure question here. Are there any known special
Is there any special behavior when decrementing a variable in the except clause? sid
Is there any special reason for the results of java -version going to stderr

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.