branch: externals/parser-generator commit 4a3a51de0a763314750dda3f199978c71287bc65 Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Added FSF copyright headers --- README.md | 4 ++-- parser-generator-lex-analyzer.el | 2 ++ parser-generator-lr-export.el | 2 ++ parser-generator-lr.el | 2 ++ parser-generator.el | 28 ++++++++++++++++++++++++++++ test/parser-generator-lex-analyzer-test.el | 2 ++ test/parser-generator-lr-export-test.el | 2 ++ test/parser-generator-lr-test.el | 2 ++ test/parser-generator-test.el | 2 ++ 9 files changed, 44 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d5d7b4f..2f5205e 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ [](https://www.gnu.org/licenses/gpl-3.0.txt) [](https://travis-ci.org/cjohansson/emacs-parser-generator) -The idea of this plugin is to provide functions for various kinds of context-free grammar parser generations with support for syntax-directed-translations (SDT) and semantic actions (SA) and the possibility of exporting parsers and translators (as generated elisp code) to enable Emacs plugin-agnostic usage. This project is also about implementing algorithms described in the book `The Theory of Parsing, Translation and Compiling (Volume 1)` by `Alfred V. Aho and Jeffrey D. Ullman` (1972). [...] +The idea of this plugin is to provide functions for various kinds of context-free grammar parser generations with support for syntax-directed-translations (SDT) and semantic actions (SA) and the possibility of exporting parsers and translators (as generated stand-alone elisp code) to enable Emacs plugin-agnostic usage. This project is also about implementing algorithms described in the book `The Theory of Parsing, Translation and Compiling (Volume 1)` by `Alfred V. Aho and Jeffrey D. Ull [...] -At the moment it is possible to generate canonical LR(k) parsers using this library. +At the moment it is possible to generate canonical LR(k) parsers using this library for complex languages like PHP 8.0. ## Lexical Analysis diff --git a/parser-generator-lex-analyzer.el b/parser-generator-lex-analyzer.el index 3198bd2..ae27555 100644 --- a/parser-generator-lex-analyzer.el +++ b/parser-generator-lex-analyzer.el @@ -1,5 +1,7 @@ ;;; parser-generator-lex-analyzer.el --- Lex-analyzer library -*- lexical-binding: t -*- +;; Copyright (C) 2020-2021 Free Software Foundation, Inc. + ;;; Commentary: diff --git a/parser-generator-lr-export.el b/parser-generator-lr-export.el index 837e79c..f545cdd 100644 --- a/parser-generator-lr-export.el +++ b/parser-generator-lr-export.el @@ -1,5 +1,7 @@ ;;; parser-generator-lr-export.el --- Export LR(k) Parser -*- lexical-binding: t -*- +;; Copyright (C) 2020-2021 Free Software Foundation, Inc. + ;;; Commentary: diff --git a/parser-generator-lr.el b/parser-generator-lr.el index 7522b5f..f27d294 100644 --- a/parser-generator-lr.el +++ b/parser-generator-lr.el @@ -1,5 +1,7 @@ ;;; parser-generator-lr.el --- LR(k) Parser Generator -*- lexical-binding: t -*- +;; Copyright (C) 2020-2021 Free Software Foundation, Inc. + ;;; Commentary: diff --git a/parser-generator.el b/parser-generator.el index 0cb9488..87f06e9 100644 --- a/parser-generator.el +++ b/parser-generator.el @@ -1,8 +1,36 @@ ;;; parser-generator.el --- Parser Generator library -*- lexical-binding: t -*- +;; Copyright (C) 2020-2021 Free Software Foundation, Inc. + +;; Author: Christian Johansson <christ...@cvj.se> +;; Maintainer: Christian Johansson <christ...@cvj.se> +;; Created: 10 Oct 2020 +;; Modified: 20 Nov 2021 +;; Version: 0.1.3 +;; Keywords: tools, convenience +;; URL: https://github.com/cjohansson/emacs-parser-generator + +;; Package-Requires: ((emacs "26")) + +;; This file is not part of GNU Emacs. + +;; 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 2, 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 GNU Emacs. If not, see <https://www.gnu.org/licenses/>. + ;;; Commentary: +;; The idea of this plugin is to provide functions for various kinds of context-free grammar parser generations with support for syntax-directed-translations (SDT) and semantic actions (SA) and the possibility of exporting parsers and translators (as generated stand-alone elisp code) to enable Emacs plugin-agnostic usage. ;;; Code: diff --git a/test/parser-generator-lex-analyzer-test.el b/test/parser-generator-lex-analyzer-test.el index 4e2134f..5e0367b 100644 --- a/test/parser-generator-lex-analyzer-test.el +++ b/test/parser-generator-lex-analyzer-test.el @@ -1,5 +1,7 @@ ;;; parser-generator-lex-analyzer-test.el --- Tests for lex-analyzer -*- lexical-binding: t -*- +;; Copyright (C) 2020-2021 Free Software Foundation, Inc. + ;;; Commentary: diff --git a/test/parser-generator-lr-export-test.el b/test/parser-generator-lr-export-test.el index 75999b8..9df4e24 100644 --- a/test/parser-generator-lr-export-test.el +++ b/test/parser-generator-lr-export-test.el @@ -1,5 +1,7 @@ ;;; parser-generator-lr-export-test.el --- Tests for LR(k) Parser Export -*- lexical-binding: t -*- +;; Copyright (C) 2020-2021 Free Software Foundation, Inc. + ;;; Commentary: diff --git a/test/parser-generator-lr-test.el b/test/parser-generator-lr-test.el index 07f7f4e..b7002a8 100644 --- a/test/parser-generator-lr-test.el +++ b/test/parser-generator-lr-test.el @@ -1,5 +1,7 @@ ;; parser-generator-lr-test.el --- Tests for LR(k) Parser Generator -*- lexical-binding: t -*- +;; Copyright (C) 2020-2021 Free Software Foundation, Inc. + ;;; Commentary: diff --git a/test/parser-generator-test.el b/test/parser-generator-test.el index f9f62e6..bc19082 100644 --- a/test/parser-generator-test.el +++ b/test/parser-generator-test.el @@ -1,5 +1,7 @@ ;;; parser-generator-test.el --- Tests for Parser Generator -*- lexical-binding: t -*- +;; Copyright (C) 2020-2021 Free Software Foundation, Inc. + ;;; Commentary: