Though by the nature of examples, you may not want to add a copyright notice on them: As special cases of something more general, they may not be sufficiently creatively unique to be copyrightable, and in addition, you may want people to use them without a worry of copyrighting.
> On 18 Dec 2020, at 07:42, Akim Demaille <[email protected]> wrote: > > * examples/c++/glr/ast.hh, examples/c++/glr/c++-types.yy: here. > --- > examples/c++/glr/ast.hh | 17 +++++++++++++++++ > examples/c++/glr/c++-types.yy | 20 +++++++++++++++++++- > 2 files changed, 36 insertions(+), 1 deletion(-) > > diff --git a/examples/c++/glr/ast.hh b/examples/c++/glr/ast.hh > index 20fab2c5..223fc119 100644 > --- a/examples/c++/glr/ast.hh > +++ b/examples/c++/glr/ast.hh > @@ -1,3 +1,20 @@ > +/* > + Copyright (C) 2020 Free Software Foundation, Inc. > + > + This program is free software: you can redistribute it and/or modify > + it under the terms of the GNU General Public License as published by > + the Free Software Foundation, either version 3 of the License, or > + (at your option) any later version. > + > + This program is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + GNU General Public License for more details. > + > + You should have received a copy of the GNU General Public License > + along with this program. If not, see <http://www.gnu.org/licenses/>. > +*/ > +
