More specifically, I'm curious to know if Bison can modify precedences
at parsing time according user sentences, now referring as user not the
programmer who wrote the *.y doc but the programmer writing a program
parsed by the parser generated from the *.y doc.

I can think of pre defining all symbols and punctuation as operators in the
*.y doc (so the user can use them or not) so leaving defined unmodifiable
precedences while leaving each operator execution for post parsing.

That’s something I guess I could achieve, because I'm already generating
a syntax tree out of the parsed doc, and executing it in a later stage after
some semantic analysis out of Bison.

However, if Bison could react to some rule reconfiguring the way it sorts
precedences, I would find that rather interesting.

Thank you very much,

> Begin forwarded message:
> 
> From: Uxio Prego <uxio.pr...@gmail.com>
> Subject: are there user defined infix operators?
> Date: 2 November 2018 at 16:10:08 CET
> To: help-bison@gnu.org
> 
> Hi,
> if there is anything new to comment in this question:
> https://stackoverflow.com/questions/31503059/custom-operators-in-bison-yacc
> I would love to read it.
> 
> Thank you very much,


_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to