[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C++ GLR parser const values in user rules
From: |
Martin Cizmar |
Subject: |
C++ GLR parser const values in user rules |
Date: |
Sun, 10 Apr 2022 16:30:13 +0000 |
Hello,
I am trying to implement a VHDL parser using Bison/C++ combination and I am
having problems with generated code. Specifically, the:
yyuserAction()
function.
I am unable to compile the code, because all rhs values for each rule are cast
as:
static_cast<glr_stack_item const*>(...)
I would like to move the values into resulting struct, but the I am unable to
because of "constness".
Are all those rhs values const because of GLR (i.e, multiple stacks)?
Oh, I am using Bison 3.8.2 and "glr2.cc" skeleton.
Thanks,
Martin.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- C++ GLR parser const values in user rules,
Martin Cizmar <=