help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Type checking in semantic actions


From: Michael Budach
Subject: Re: Type checking in semantic actions
Date: Thu, 18 Feb 2010 22:24:27 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1

Hello Hans

First of all thanks a lot for your help.

>You can change the skeleton file.

I have tried out and it works, but it seems like it doesn't make life much easier. So I think I will stick to dummy actions for unneeded rules and leave the skeleton alone.

By the way, just in case someone else is interested:
to implement this rule for the c++ skeleton of bison 2.4.1 it is located in file lalr1.cc line 676ff:
    switch (yyn)
      {
        ]b4_user_actions[
        default:
                  yyval.default_ptr = NULL;
                  // default_ptr must be a member in the %union command
          break;
      }


Best regards,
Michael





reply via email to

[Prev in Thread] Current Thread [Next in Thread]