glr2.cc: move glr_stack and glr_state into the parser class

In order to be able to link several glr2.cc parser together, we cannot
have glr_stack and glr_state be in no namespace.  Putting them in the
unnamed namespace is not doable, since we need to fwd declare them in
the parser.  Putting them in the specified namespace is not enough
either, since some users would like to be able to put several parsers
in the same name, only differing by the class name.

* data/skeletons/glr2.cc (glr_state, glr_stack): Move into yy::parser.
This commit is contained in:
Akim Demaille
2021-09-09 06:52:43 +02:00
parent 3e94b12ddd
commit 9babd05a90

File diff suppressed because it is too large Load Diff