[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] style: add missing copyright headers
From: |
Akim Demaille |
Subject: |
[PATCH 1/4] style: add missing copyright headers |
Date: |
Fri, 18 Dec 2020 07:42:01 +0100 |
* 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/>.
+*/
+
#include <iostream>
#if __cplusplus < 201103L
diff --git a/examples/c++/glr/c++-types.yy b/examples/c++/glr/c++-types.yy
index 1ed5ee09..53262c25 100644
--- a/examples/c++/glr/c++-types.yy
+++ b/examples/c++/glr/c++-types.yy
@@ -1,4 +1,22 @@
-/* Simplified -*- C++ -*- Type and Expression Grammar. */
+/* -*- C++ -*-
+ 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/>.
+*/
+
+/* Simplified C++ Type and Expression Grammar.
+ Written by Paul Hilfinger for Bison's test suite. */
%glr-parser
%skeleton "glr2.cc"
--
2.29.2