glr parser and getting semantic values from the lexer

2020-12-20 Thread Jot Dot
I feel real dumb asking this but, How do you pass values back from the lexer when using %glr-parser? I know I must use POD data types. In the .y file, I am using: %define api.value.type union %token CONSTANT and in the lexer file: {inum} { // Integer int64_t number = str

Re: Meson build definition

2020-12-20 Thread Daniele Nicolodi
On 20/12/2020 15:31, Christian Schoenebeck via Users list for the GNU Bison parser generator wrote: > On Sonntag, 20. Dezember 2020 12:33:45 CET Daniele Nicolodi wrote: >> On 20/12/2020 08:09, Akim Demaille wrote: >>> Hi Daniele, >>> Le 19 déc. 2020 à 20:17, Daniele Nicolodi a écrit : >>

Re: Meson build definition

2020-12-20 Thread Christian Schoenebeck via Users list for the GNU Bison parser generator
On Sonntag, 20. Dezember 2020 12:33:45 CET Daniele Nicolodi wrote: > On 20/12/2020 08:09, Akim Demaille wrote: > > Hi Daniele, > > > >> Le 19 déc. 2020 à 20:17, Daniele Nicolodi a écrit : > >> > >> Hello, > >> > >> I am working on a project that uses Bison to generate a parser and Meson > >> as

Re: Meson build definition

2020-12-20 Thread Daniele Nicolodi
On 20/12/2020 08:09, Akim Demaille wrote: > Hi Daniele, > >> Le 19 déc. 2020 à 20:17, Daniele Nicolodi a écrit : >> >> Hello, >> >> I am working on a project that uses Bison to generate a parser and Meson >> as build system. I would like to include Bison as a subproject [1] in >> particular to ma