[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/parser-generator 2be434c 114/434: Removed obsolete debu
From: |
ELPA Syncer |
Subject: |
[elpa] externals/parser-generator 2be434c 114/434: Removed obsolete debug messages |
Date: |
Mon, 29 Nov 2021 15:59:20 -0500 (EST) |
branch: externals/parser-generator
commit 2be434ce201c485fce0848fd7b8af9ff38e34045
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Removed obsolete debug messages
---
parser-lr.el | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/parser-lr.el b/parser-lr.el
index e62300c..c640c74 100644
--- a/parser-lr.el
+++ b/parser-lr.el
@@ -46,7 +46,6 @@
(states '(shift reduce error))
(added-actions (make-hash-table :test 'equal)))
(dolist (goto-table parser-lr--goto-tables)
- ;; (message "goto-table: %s" goto-table)
(let ((goto-index (car goto-table))
(gotos (car (cdr goto-table)))
(found-action nil)
@@ -62,7 +61,6 @@
(< lr-item-index lr-items-length)
continue-loop)
(setq lr-item (nth lr-item-index lr-items))
- ;; (message "lr-item: %s" lr-item)
(cond
((eq state 'shift)
@@ -70,13 +68,9 @@
(when (nth 2 lr-item)
(let ((C (nth 2 lr-item))
(v (nth 3 lr-item)))
- ;; (message "C: %s" C)
- ;; (message "v: %s" v)
(let ((Cv (append C v)))
- ;; (message "Cv: %s" Cv)
(when Cv
(let ((eff (parser--e-free-first Cv)))
- ;; (message "EFF%s: %s" Cv eff)
(when eff
;; Go through eff-items and see if any item
is a valid look-ahead of grammar
;; in that case save in action table a shift
action here
@@ -88,9 +82,7 @@
searching-match
(< eff-index eff-length))
(setq eff-item (nth eff-index eff))
- ;; (message "eff-item: %s" eff-item)
(when (parser--valid-look-ahead-p
eff-item)
- ;; (message "eff-item is a valid
look-ahead of grammar")
(let ((hash-key (format "%s-%s-%s"
goto-index state eff-item)))
(unless (gethash hash-key
added-actions)
(puthash hash-key t added-actions)
@@ -98,7 +90,6 @@
(setq eff-index (1+ eff-index)))
(unless searching-match
- ;; (message "%s x %s -> 'shift"
goto-index eff-item)
(push (list eff-item 'shift)
action-table)
(setq found-action t))))))))))
@@ -117,7 +108,6 @@
(unless (gethash hash-key added-actions)
(puthash hash-key t added-actions)
(let ((production (list A B)))
- ;; (message "production: %s" production)
(let ((production-number
(parser--get-grammar-production-number production)))
(unless production-number
(error "Expecting production number for
%s from LR-item %s!" production lr-item))
@@ -133,7 +123,6 @@
(setq found-action t))
;; save reduction action in action table
- ;; (message "%s x %s -> 'reduce %s"
goto-index u production-number)
(push (list u 'reduce production-number)
action-table)
(setq found-action t))))))))))
- [elpa] externals/parser-generator b2a0d71 112/434: Passed test for action-table generation, (continued)
- [elpa] externals/parser-generator b2a0d71 112/434: Passed test for action-table generation, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 1c1177f 116/434: More work on LR-parser algorithm, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 9db14cd 118/434: Added TODO items, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 5784f3f 126/434: Updated README with link to separate document for grammar, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator edfb7b4 131/434: Moved lex-analyzer to separate file, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 8cda060 149/434: Made some functions public, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator c1d3707 150/434: Passing test for including SDT in Produductions, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator d36051c 103/434: Parser now creates hash table over productions to their production number, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator e3d3007 109/434: Tweaking of action-table generation for canonical LR-parser, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator d7daabf 111/434: Fixed bug with e-free-first function, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 2be434c 114/434: Removed obsolete debug messages,
ELPA Syncer <=
- [elpa] externals/parser-generator 89d128c 123/434: Added TODO item, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 044f33a 151/434: Added more support for SDT, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 96f128f 155/434: More various stuff, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator a586a0e 162/434: More work on incremental parsing, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 6d323a4 120/434: Implemented reduce action of LR-parser algorithm, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 9b44827 124/434: Optimized LR-parser with hash-tables, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 01fc56f 127/434: Updated list of grammars, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 4ef0430 133/434: White-space fix, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator b2fd896 136/434: Added support for indexed tokens, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 4746c64 137/434: Updated example for LR parse with indexed tokens, ELPA Syncer, 2021/11/29