summaryrefslogtreecommitdiff
path: root/data/skeletons/variant.hh
Commit message (Collapse)AuthorAgeFilesLines
* package: bump copyrights to 2020Akim Demaille2020-01-051-1/+1
| | | | Run 'make update-copyright'.
* c++: also prefer YY_ASSERT to YYASSERTAkim Demaille2019-12-071-20/+20
| | | | | | Like the other skeletons. * data/skeletons/variant.hh: here.
* package: bump copyrights to 2019Akim Demaille2019-01-051-1/+1
|
* parsers: fix minor stylistic issuesAkim Demaille2018-12-271-10/+1
| | | | | | | * data/skeletons/variant.hh (b4_token_constructor_declare): Remove, unused since the previous commit. Fix indentation issues. * data/skeletons/c++.m4: Fix indentation issues.
* c++: variants: fuse declarations and definitionsAkim Demaille2018-12-261-136/+69
| | | | | | | | | | | | | | | | | | | | | | We used to create a short definition of yy::parser with all the implementations of its member functions outside. But yy::parser is no longer short and simple to read. Maintaining each function twice is painful: a lot of redundancy but different indentation levels, output which depends on whether we are in a header or not (see d132c2d5455135f63a7497c38358eadd6e3a6af8), etc. Let's simplify this and put the implementations into the class definition itself. Discussed in this monologue: https://lists.gnu.org/archive/html/bison-patches/2018-12/msg00058.html. * data/skeletons/c++.m4, data/skeletons/lalr1.cc, * data/skeletons/variant.hh (b4_basic_symbol_constructor_define) (_b4_token_constructor_declare, b4_token_constructor_declare) Merge into... (b4_basic_symbol_constructor_define, _b4_token_constructor_define) (b4_token_constructor_define): these.
* package: move skeletons into data/skeletonsAkim Demaille2018-12-251-0/+529
* data/bison.m4, data/c++-skel.m4, data/c++.m4, data/c-like.m4, * data/c-skel.m4, data/c.m4, data/d-skel.m4, data/d.m4, data/glr.c, * data/glr.cc, data/java-skel.m4, data/java.m4, data/lalr1.cc, * data/lalr1.d, data/lalr1.java, data/location.cc, data/stack.hh, * data/variant.hh, data/yacc.c: Move to... * data/skeletons: here. Use b4_skeletonsdir instead of b4_pkgdatadir. * data/local.mk, src/output.c: Adjust.