[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/parser-generator 40473d3 252/434: Fixed bug with data i
From: |
ELPA Syncer |
Subject: |
[elpa] externals/parser-generator 40473d3 252/434: Fixed bug with data in full look-ahead in parse function |
Date: |
Mon, 29 Nov 2021 15:59:51 -0500 (EST) |
branch: externals/parser-generator
commit 40473d3df88378f2d64fec08b66d79308d5b5432
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Fixed bug with data in full look-ahead in parse function
---
parser-generator-lr.el | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/parser-generator-lr.el b/parser-generator-lr.el
index 5e0183c..498623a 100644
--- a/parser-generator-lr.el
+++ b/parser-generator-lr.el
@@ -905,7 +905,7 @@
(look-ahead-full))
;; Save token stream indexes in separate variable if needed later
- (setq look-ahead-full (nreverse look-ahead))
+ (setq look-ahead-full look-ahead)
;; Create simplified look-ahead for logic below
(setq look-ahead nil)
@@ -913,9 +913,11 @@
(if (listp look-ahead-item)
(push (car look-ahead-item) look-ahead)
(push look-ahead-item look-ahead)))
+ (setq look-ahead (nreverse look-ahead))
(parser-generator--debug
- (message "look-ahead: %s" look-ahead))
+ (message "look-ahead: %s" look-ahead)
+ (message "look-ahead-full: %s" look-ahead-full))
(let ((table-index
(car pushdown-list)))
@@ -941,9 +943,14 @@
(< action-index action-table-length))
(let ((action (nth action-index action-table)))
(let ((action-look-ahead (car action)))
- (push action-look-ahead possible-look-aheads)
- (when (equal action-look-ahead look-ahead)
- (setq action-match (cdr action)))))
+ (push
+ action-look-ahead
+ possible-look-aheads)
+ (when (equal
+ action-look-ahead
+ look-ahead)
+ (setq action-match
+ (cdr action)))))
(setq action-index (1+ action-index)))
(unless action-match
- [elpa] externals/parser-generator 1818b9d 199/434: Added error in action-tables generation if no accept action is found, (continued)
- [elpa] externals/parser-generator 1818b9d 199/434: Added error in action-tables generation if no accept action is found, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 54857e4 220/434: Added failing unit test for translation via LRk, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator a96ab3a 222/434: More debugging LR k > 1, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 783ea61 227/434: Added translation-symbol-table to incremental parser and translater, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 439d894 228/434: Passed all LR k=1 tests with more work on generalized solution, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 47fb35e 229/434: More work on a more generalized LR Parser, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 9b6e076 231/434: Using lowercase epsilon for e-identifier comment, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 01173e2 230/434: Added EOF identifier, passing all unit tests, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator a76bb98 240/434: Added comments, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 3807a72 237/434: Added failing unit test for LR-items k=2, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 40473d3 252/434: Fixed bug with data in full look-ahead in parse function,
ELPA Syncer <=
- [elpa] externals/parser-generator e1315c3 246/434: Updated so E-FREE-FIRST(x) only uses E-FREE-FIRST on first symbol, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 53ae129 245/434: Commented out useless code, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 24e96cb 261/434: Improved description of LRk, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 40907b7 257/434: white-space fixes, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 37d9fcb 260/434: Improved documentation, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 08b696f 267/434: Fixed typo in doc about token, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator b80fc6e 264/434: Updated README, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 1b9d8db 268/434: Improved wording about lexical analysis, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 3615fad 276/434: Fixed issue with lex-analyzer in LR(0) Parser, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 732cd78 282/434: Constants and variables are exported correctly, ELPA Syncer, 2021/11/29