Files
bison/examples/c++/glr
Akim Demaille b2d35f5cb8 glr2.cc: make the example more C++
Currently the example really looks like C.  Instead of a union of
structs to implement the AST, use a hierarchy.  It would be nice to
feature a C++17 version with std variants.

* examples/c++/glr/c++-types.yy (Node, free_node, new_nterm)
(new_term): Move into...
* examples/c++/glr/ast.hh: here, a proper C++ hierarchy.
2020-12-14 06:33:22 +01:00
..
2020-12-14 06:33:22 +01:00
2020-12-14 06:33:22 +01:00
2020-09-26 18:33:48 +02:00
2020-09-26 18:33:48 +02:00

glr

This example demonstrates the use of GLR parsers to handle (local) ambiguities in the C++ language. See the node "Merging GLR Parses" in Bison's documentation.