[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode eb17d8c 51/96: Improved resuming of parser-ge
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode eb17d8c 51/96: Improved resuming of parser-generation |
Date: |
Fri, 29 Oct 2021 11:14:45 -0400 (EDT) |
branch: externals/phps-mode
commit eb17d8c06c71bcc3a490ba676bcb63e1941601af
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Improved resuming of parser-generation
---
admin/phps-mode-automation.el | 39 ++++++++++++++++++++++++++-------------
1 file changed, 26 insertions(+), 13 deletions(-)
diff --git a/admin/phps-mode-automation.el b/admin/phps-mode-automation.el
index 01b6729..e0fe7cd 100644
--- a/admin/phps-mode-automation.el
+++ b/admin/phps-mode-automation.el
@@ -126,15 +126,28 @@
;; Only generate LR-items, GOTO-tables and ACTION-tables if we are
lacking it
(if (and
- (boundp 'parser-generator-lr--goto-tables)
- parser-generator-lr--goto-tables
- (boundp 'parser-generator-lr--distinct-goto-tables)
- parser-generator-lr--distinct-goto-tables
- (boundp 'parser-generator-lr--action-tables)
- parser-generator-lr--action-tables
- (boundp 'parser-generator-lr--distinct-action-tables)
- parser-generator-lr--distinct-action-tables)
- (message "Parser tables are defined - skipping generation")
+ (boundp 'parser-generator-lr--goto-tables-resume)
+ parser-generator-lr--goto-tables-resume
+ (boundp 'parser-generator-lr--distinct-goto-tables-resume)
+ parser-generator-lr--distinct-goto-tables-resume
+ (boundp 'parser-generator-lr--action-tables-resume)
+ parser-generator-lr--action-tables-resume
+ (boundp 'parser-generator-lr--distinct-action-tables-resume)
+ parser-generator-lr--distinct-action-tables-resume)
+ (progn
+ (setq
+ parser-generator-lr--goto-tables
+ parser-generator-lr--goto-tables-resume)
+ (setq
+ parser-generator-lr--distinct-goto-tables
+ parser-generator-lr--distinct-goto-tables-resume)
+ (setq
+ parser-generator-lr--action-tables
+ parser-generator-lr--action-tables-resume)
+ (setq
+ parser-generator-lr--distinct-action-tables
+ parser-generator-lr--distinct-action-tables-resume)
+ (message "Parser tables are defined - skipping generation"))
(progn
(message "Parser tables are not defined - generating..")
(when (fboundp 'parser-generator-lr--generate-goto-tables)
@@ -145,21 +158,21 @@
table-lr-items)
(when (boundp 'parser-generator-lr--goto-tables)
(message
- "parser-generator-lr--goto-tables: %S"
+ "(setq parser-generator-lr--goto-tables-resume %S)"
parser-generator-lr--goto-tables))
(when (boundp 'parser-generator-lr--distinct-goto-tables)
(message
- "parser-generator-lr--distinct-goto-tables: %S"
+ "(setq parser-generator-lr--distinct-goto-tables-resume
%S)"
parser-generator-lr--distinct-goto-tables))
(when (fboundp 'parser-generator-lr--generate-action-tables)
(parser-generator-lr--generate-action-tables
table-lr-items)
(when (boundp 'parser-generator-lr--action-tables)
(message
- "parser-generator-lr--action-tables: %S"
+ "(setq parser-generator-lr--action-tables-resume %S)"
parser-generator-lr--action-tables))
(when (boundp 'parser-generator-lr--distinct-action-tables)
(message
- "parser-generator-lr--distinct-action-tables: %S"
+ "(setq
parser-generator-lr--distinct-action-tables-resume %S)"
parser-generator-lr--distinct-action-tables))))))))
;; NOTE This does not work if functions above are byte-compiled
- [elpa] externals/phps-mode b94cbbf 58/96: Set GB collection in automation, (continued)
- [elpa] externals/phps-mode b94cbbf 58/96: Set GB collection in automation, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode bb4858b 61/96: Defined lex-analyzer reset function for parser, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 22f0a47 62/96: Parser generator passing byte-compilation, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 751bece 50/96: Removed terminals, non-terminals and start from automation grammar, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 4dbd9a2 54/96: Automatically parsing of global declaration from YACC, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 024e8d4 55/96: Setting up context-sensitive attributes automatically, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 605b76c 57/96: Removed note, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 20ad000 68/96: Added another TODO item, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode a6c5db1 45/96: Updated grammar productions based on automatically parsed grammar from YACC, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 2ac480a 47/96: Started on automatic generation of terminals, non-terminals and start as well, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode eb17d8c 51/96: Improved resuming of parser-generation,
Christian Johansson <=
- [elpa] externals/phps-mode 6af98c4 56/96: Productions are now read automatically again, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 212fd7f 63/96: Fixed warning in byte-compilation, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode fb57c3b 53/96: Started on parser for global declaration, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode e418621 59/96: Projects passes tests and byte-compilation again, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 945571c 65/96: Fixed byte-compilation issues with parser, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 07a983d 66/96: Passing parser tests, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode b551e69 67/96: Added TODO items, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 37fdd2e 78/96: Passing all tests with parser integrated somewhat, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode e3b9403 69/96: Removed garbage collection modification, Christian Johansson, 2021/10/29
- [elpa] externals/phps-mode 1789d15 60/96: Fixed bug in gramamr automation, Christian Johansson, 2021/10/29