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
<gautam.akiwate(a)gmail.com> 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 <siddhesh.poyarekar(a)gmail.com>
Subject: Re: [fedora-india] Autotools Problem
To: india(a)lists.fedoraproject.org
Message-ID:
<CAAHN_R2mSZqk1BadZy1uzXnTdBMm81-D5ufAfXec98bb+xSjSw(a)mail.gmail.com
>
Content-Type: text/plain; charset=ISO-8859-1
On Mon, Sep 26, 2011 at 10:01 PM, Gautam Akiwate
<gautam.akiwate(a)gmail.com> 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 <metherid(a)gmail.com>
Subject: [fedora-india] Ask Fedora launched
To: Fedora India <india(a)lists.fedoraproject.org>
Message-ID: <4E81930B.3000000(a)gmail.com>
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 <libregeek(a)gmail.com>
Subject: Re: [fedora-india] Ask Fedora launched
To: india(a)lists.fedoraproject.org
Message-ID:
<CAFa-k1gCGKqYi7qJvc6arLUD4F_Q7gga5idmPBq3OTx4KdNaoQ(a)mail.gmail.com
>
Content-Type: text/plain; charset=UTF-8
On 27 September 2011 14:40, Rahul Sundaram <metherid(a)gmail.com> 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 <kumarpraveen.nitdgp(a)gmail.com>
Subject: Re: [fedora-india] Ask Fedora launched
To: india(a)lists.fedoraproject.org
Message-ID:
<CAK32T6VCmo0CsqZC1RcA3bOXiVjmfV01JR51boY+UGVVdT5Gpw(a)mail.gmail.com
>
Content-Type: text/plain; charset="utf-8"
On Tue, Sep 27, 2011 at 4:27 PM, Manilal K M <libregeek(a)gmail.com> wrote:
> On 27 September 2011 14:40, Rahul Sundaram <metherid(a)gmail.com> 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/d6c76...
------------------------------
_______________________________________________
india mailing list
india(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/india
End of india Digest, Vol 49, Issue 21
*************************************