emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/parser-generator 43f3bd4 332/434: Fixed issue were non-


From: ELPA Syncer
Subject: [elpa] externals/parser-generator 43f3bd4 332/434: Fixed issue were non-terminals named as emacs-lisp functions was not accepted in grammar
Date: Mon, 29 Nov 2021 16:00:09 -0500 (EST)

branch: externals/parser-generator
commit 43f3bd474e74a93372818ea76ef57b415bb6a85b
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Fixed issue were non-terminals named as emacs-lisp functions was not 
accepted in grammar
---
 parser-generator.el | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/parser-generator.el b/parser-generator.el
index 4290f04..b3520c8 100644
--- a/parser-generator.el
+++ b/parser-generator.el
@@ -514,7 +514,9 @@
                    (nth
                     sub-rhs-element-index
                     rhs-element))
-                  (if (functionp sub-rhs-element)
+                  (if (and
+                       (listp sub-rhs-element)
+                       (functionp sub-rhs-element))
                       (setq
                        translation
                        sub-rhs-element)
@@ -906,7 +908,8 @@
               (cond
                ((stringp rhs-element))
                ((symbolp rhs-element))
-               ((and (functionp rhs-element)
+               ((and (listp rhs-element)
+                     (functionp rhs-element)
                      (= rhs-index (1- rhs-length))))
                ((and
                  (listp rhs-element)
@@ -927,7 +930,6 @@
                            (or (stringp (car rhs-sub-element))
                                (symbolp (car rhs-sub-element)))
                            (or
-                            (functionp (car (cdr rhs-sub-element)))
                             (listp (car (cdr rhs-sub-element)))))
                         (setq
                          is-valid
@@ -972,8 +974,9 @@
                                     (setq
                                      attribute-index
                                      (+ attribute-index 2)))))))))
-                    ((and (functionp rhs-sub-element)
-                          (= rhs-sub-index (1- rhs-sub-length))))
+                     ((and (listp rhs-sub-element)
+                           (functionp rhs-sub-element)
+                           (= rhs-sub-index (1- rhs-sub-length))))
                     ((or (stringp rhs-sub-element)
                          (symbolp rhs-sub-element)))
                     (t (setq is-valid nil)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]