bug-bison
[Top][All Lists]
Advanced

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

Re: Please, support easy AST generation


From: Akim Demaille
Subject: Re: Please, support easy AST generation
Date: Sun, 9 Dec 2018 07:05:17 +0100


> Le 9 déc. 2018 à 01:45, Askar Safin <address@hidden> a écrit :
> 
> Hi. Often the only thing I want to do in Bison is just generate AST and 
> nothing else. Unfortunately, in this case code becomes very repetitive. For 
> example, this is Bison input I used to generate AST for small JavaScript 
> subset: 
> https://zerobin.net/?b9af68c9aa7a31a9#JB4wZseYTq9aKfZOwwZrDqBNCqlEZRj/+DM9bKdgtKU=
>  . Please, support some feature, which eliminates the need to write such 
> repetitive code. Such code can be easily generated from grammar alone

Askar,

We all have ideas about what we should do in Bison, and some of them are in 
TODO. You are welcome to become a contributor.  I have been willing to have 
such a feature for years.

Pay attention though that what often appears as simple, is much more delicate 
than you might think when you have to turn it into a fully blown feature for 
everyone.

Please, contribute a specification, or better yet, a first implementation, to 
see how we should do it.


reply via email to

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