> Le 9 déc. 2018 à 01:45, Askar Safin <[email protected]> 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