help-bison
[Top][All Lists]
Advanced

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

Re: bison info doc - precedence in recursive parsing


From: Hans Åberg
Subject: Re: bison info doc - precedence in recursive parsing
Date: Sun, 10 Feb 2019 15:20:58 +0100

> On 10 Feb 2019, at 11:07, Akim Demaille <address@hidden> wrote:
> 
>> Le 10 févr. 2019 à 00:12, Hans Åberg <address@hidden> a écrit :
>> 
>>> On 4 Feb 2019, at 07:32, Akim Demaille <address@hidden> wrote:
>>> 
>>> Make a full example, feed it to bison with --graph, and look at the 
>>> resulting graph.  You should understand what is going on (provided you 
>>> understand how LR parsers work).
>> 
>> According to [1], .gv is preferred as .dot can be confused with another 
>> format (for example, Xcode does).
>> 
>> 1. https://en.wikipedia.org/wiki/DOT_(graph_description_language)
> 
> Yes, I know, and that's what I do, as you have noticed in the Makefile.
> 
> %.c %.h %.xml %.gv: %.y
>        $(BISON) $(BISONFLAGS) --defines --xml --graph=$*.gv -o $*.c $<
> 
> But it's too late to change the default behavior.

You might change it, as it is not usable on real life grammars.





reply via email to

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