Files
bison/data/skeletons
Akim Demaille 0a82316e54 glr2.cc: example: use objects (not pointers) to represent the AST
Currently we are using pointers.  The whole point of
glr2.cc (vs. glr.cc) is precisely to allow genuine C++ objects to be
semantic values.  Let's make that work.

* data/skeletons/glr2.cc (glr_state::glr_state): Be sure to initialize
yysval.
(glr_state): Add copy-ctor, assignment and dtor.
(glr_state::copyFrom): Be sure to initialize the destination if it was
not.
(glr_state::~glr_state): Destroy the semantic value.
* examples/c++/glr/ast.hh: Rewrite so that we use genuine objects,
rather than a traditional OOP hierarchy that requires to deal with
pointers.
With help from Bruno Belanyi <bruno.belanyi@epita.fr>.
* examples/c++/glr/c++-types.yy: Remove memory management.
Use true objects.
(main): Don't reach yydebug directly.

* examples/c++/glr/local.mk: We need C++11.
2020-12-20 18:41:42 +01:00
..
2020-05-21 20:14:59 +02:00
2020-01-10 19:16:23 +01:00
2020-01-10 19:16:23 +01:00
2020-12-03 06:19:17 +01:00
2020-01-10 19:16:23 +01:00
2020-12-20 14:54:46 +01:00
2020-12-05 07:36:01 +01:00
2020-01-10 19:16:23 +01:00
2020-12-03 06:19:17 +01:00
2020-11-13 07:01:19 +01:00
2020-04-13 16:49:54 +02:00
2020-11-13 07:01:19 +01:00
2020-11-13 07:01:19 +01:00