help-bison
[Top][All Lists]
Advanced

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

Re: QUESTION: is bison recursive?


From: Sean Nakasone
Subject: Re: QUESTION: is bison recursive?
Date: Mon, 28 Jul 2014 06:14:34 -1000

thanks Valentin, i wasnt aware of the -p option. 

Sent from my iPhone

> On Jul 27, 2014, at 11:29 PM, Valentin Tolmer <address@hidden> wrote:
> 
> 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
> _______________________________________________
> address@hidden https://lists.gnu.org/mailman/listinfo/help-bison



reply via email to

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