> Le 20 déc. 2020 à 21:55, Jot Dot a écrit :
>
> I feel real dumb asking this but,
>
> How do you pass values back from the lexer when using %glr-parser?
First of all, you need to understand that when you are in nondeterministic mode,
the actions are delayed, the scanner and the parser are n
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