Aren't yyerror and yywrap inbuilt definitions?

If they are why are we redefining them?

Gautam

Hi,
>
> --- On Mon, Sep 26, 2011 at 10:01 PM, Gautam Akiwate
> <[email protected]> wrote:
> | But when I do a make it generates an error saying that it is unable to
> find
> | yylwrap etc.
> \--
>
> In addition, I also got the error 'undefined reference to yyerror'
> when I tried your language-parser-1.0 sources that you had sent. I
> added the following in ie_parser.c after the inclusion of lp.h:
>
> === CODE ===
>
> /* Line 189 of yacc.c  */
> #line 20 "ie_parser.y"
>
> #include<stdio.h>
> #include "lp.h"
>
> + void yyerror (char *s)
> + {
> +    fprintf (stderr, "%s\n", s);
> + }
>
> === END ===
>
> I also added a yywrap() before the main() function in ie_parser.c:
>
> === CODE ===
>
> + int yywrap()
> + {
> +        return (1);
> + }
>
> main(){
>        do {
>                yyparse();
>        }
>        while(!feof(yyin));
> }
>
> === END ===
>
> I was then able to build, and test run it:
>
>  $ aclocal; autoconf; automake -a -c
>  $ ./configure; make
>  $ ./lparser < learn.txt
>
> SK
>
> --
> Shakthi Kannan
> http://www.shakthimaan.com
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 26 Sep 2011 23:16:28 +0530
> From: Siddhesh Poyarekar <[email protected]>
> Subject: Re: [fedora-india] Autotools Problem
> To: [email protected]
> Message-ID:
>        <caahn_r2mszqk1badzy1uzxntdbmm81-d5ufafxec98bb+xs...@mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Mon, Sep 26, 2011 at 10:01 PM, Gautam Akiwate
> <[email protected]> wrote:
> > AC_PROG_YACC
> > AM_PROG_LEX
>
> The problem with these macros are that they only generate warnings and
> do not die with an error. So if you want to surely die if there is no
> lex/yacc on the system, then you will need to add additional checks.
> The autotools info doc has more information on how you can do this.
>
> --
> Siddhesh Poyarekar
> http://siddhesh.in
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 27 Sep 2011 14:40:35 +0530
> From: Rahul Sundaram <[email protected]>
> Subject: [fedora-india] Ask Fedora launched
> To: Fedora India <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=UTF-8
>
> Hi
>
> http://ask.fedoraproject.org is a question and answer oriented forum for
> Fedora.  It has been launched today to provide a community support
> portal for Fedora community and build a knowledge base in a organic way.
>
> You do not need to a separate id to post questions or answer them.  You
> can use any openid to login including Google, Yahoo or Wordpress.  You
> can use your Fedora identity as well (fasname.id.fedoraproject.org).
>
> The full launch will be in sync with the Fedora 16 release.  I am
> announcing it early here to have some feedback and to feed in some
> relevant questions and answers.  Thanks to everyone who helped out
> including PJP,  Kevin Fenzi,  Toshio Ernie Kuratomi, Matthias Runge,
> Praveen Kumar,  Arun SAG,  Ratnadeep Debnath, Lakshmi Narasimhan,  and
> Jitesh Shah.  Let me know if you have any questions.
>
> Rahul
>
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 27 Sep 2011 16:27:39 +0530
> From: Manilal K M <[email protected]>
> Subject: Re: [fedora-india] Ask Fedora launched
> To: [email protected]
> Message-ID:
>        <cafa-k1gcgkqyi7qjvc6arlud4f_q7gga5idmpbq3otx4kdn...@mail.gmail.com
> >
> Content-Type: text/plain; charset=UTF-8
>
> On 27 September 2011 14:40, Rahul Sundaram <[email protected]> wrote:
> > Hi
> >
> > http://ask.fedoraproject.org is a question and answer oriented forum for
> > Fedora. ?It has been launched today to provide a community support
> > portal for Fedora community and build a knowledge base in a organic way.
>
> Thanks for setting up such a cool application. What type of Fedora
> questions are expected? end-user, developer or server admins.. ?
>
> regards
> --
> Manilal K M : ???????? ?? ??.
> http://libregeek.blogspot.com
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 27 Sep 2011 16:46:41 +0530
> From: Praveen Kumar <[email protected]>
> Subject: Re: [fedora-india] Ask Fedora launched
> To: [email protected]
> Message-ID:
>        <cak32t6vcmo0csqzc1rca3boxivjmfv01jr51boy+ugvvdt5...@mail.gmail.com
> >
> Content-Type: text/plain; charset="utf-8"
>
> On Tue, Sep 27, 2011 at 4:27 PM, Manilal K M <[email protected]> wrote:
>
> > On 27 September 2011 14:40, Rahul Sundaram <[email protected]> wrote:
> > > Hi
> > >
> > > http://ask.fedoraproject.org is a question and answer oriented forum
> for
> > > Fedora.  It has been launched today to provide a community support
> > > portal for Fedora community and build a knowledge base in a organic
> way.
> >
> > Thanks for setting up such a cool application. What type of Fedora
> > questions are expected? end-user, developer or server admins.. ?
> >
> You can ask any type of question related to fedora  but before that please
> make sure your question is not already asked.
> More Info : http://ask.fedoraproject.org/faq/
>
> >
> > regards
> > --
> > Manilal K M : ???????? ?? ??.
> > http://libregeek.blogspot.com
>
>
>
> Regards,
> Praveen Kumar
> http://fedoraproject.org/
> http://kumar-pravin.blogspot.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.fedoraproject.org/pipermail/india/attachments/20110927/d6c76629/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> india mailing list
> [email protected]
> https://admin.fedoraproject.org/mailman/listinfo/india
>
> End of india Digest, Vol 49, Issue 21
> *************************************
>



-- 
"Quis custodiet ipsos custodes?"
_______________________________________________
india mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/india

Reply via email to