help-bison
[Top][All Lists]
Advanced

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

Re: QUESTION: is bison recursive?


From: Valentin Tolmer
Subject: Re: QUESTION: is bison recursive?
Date: Mon, 28 Jul 2014 11:29:12 +0200

Hello,

>From a make -p (to display implicit rules), I get
%.c: %.y
        $(YACC.y) $<
        mv -f y.tab.c $@

In most systems, yacc is aliased to bison when installed.

Cheers,



On Mon, Jul 28, 2014 at 9:12 AM, Tadej Borovšak <address@hidden> wrote:

> Dne 27.07.2014 (ned) ob 20:29 +0200 je Hans Aberg napisal(a):
> > On 27 Jul 2014, at 02:35, sean nakasone <address@hidden> wrote:
> >
> > > Anyone know if bison is recursive?  Meaning, does the bison build call
> bison?
> >
> > Yes, the file src/parse-gram.y is used to make the Bison parser.
> >
> > > The reason I'm asking is because I'm going through the bison 3.0
> makefile and I don't see where bison is actually being called.
> >
> > A grep on the sources shows
> >   Makefile.in:  src/parse-gram.y
> > but I’m not sure how exactly its called. Perhaps Akim, which I think
> implemented it, can tell.
>
> If I'm not mistaken, make has built-in rule for *.y -> *.c conversion.
> This is probably why no explicit rule is to be found in build system.
>
> Cheers,
> Tadej
>
> --
> Tadej Borovšak
> address@hidden
> address@hidden
> blog.borovsak.si
>
>
> _______________________________________________
> address@hidden https://lists.gnu.org/mailman/listinfo/help-bison




-- 
Valentin Tolmer


reply via email to

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