[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode fe89129aaa 03/15: More work on PHP 8.1 automa
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode fe89129aaa 03/15: More work on PHP 8.1 automation |
Date: |
Sat, 26 Feb 2022 02:06:35 -0500 (EST) |
branch: externals/phps-mode
commit fe89129aaadfa37b7883c12b9fdb7141375cecf0
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
More work on PHP 8.1 automation
---
Makefile | 2 +-
phps-mode-automation-parser-generator.el | 11 ++++-------
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile
index 340eff5aed..a1b068a775 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ parser: clean generate-parser
.PHONY: generate-parser
generate-parser:
- rm phps-mode-automation-grammar.elc; $(EMACS_CMD) -L
~/.emacs.d/emacs-parser-generator/ -l phps-mode-lexer.el -l
admin/phps-mode-automation.el -eval "(progn (require
'parser-generator-lr-export)(setq debug-on-signal t)(setq debug-on-error
t)(phps-mode-automation))"
+ $(EMACS_CMD) -L ~/.emacs.d/emacs-parser-generator/ -l
phps-mode-lexer.el -l admin/phps-mode-automation.el -eval "(progn (require
'parser-generator-lr-export)(setq debug-on-signal t)(setq debug-on-error
t)(phps-mode-automation))"
.PHONY: compile
compile:
diff --git a/phps-mode-automation-parser-generator.el
b/phps-mode-automation-parser-generator.el
index 9398474c47..c439e73d64 100644
--- a/phps-mode-automation-parser-generator.el
+++ b/phps-mode-automation-parser-generator.el
@@ -9,6 +9,8 @@
;;; Code:
+(require 'url)
+
(autoload 'parser-generator-set-look-ahead-number "parser-generator")
(autoload 'parser-generator-set-grammar "parser-generator")
(autoload 'parser-generator-process-grammar "parser-generator")
@@ -58,17 +60,12 @@
(php-yacc-file
(expand-file-name "zend_language_parser.y")))
- ;; NOTE PHP 8.1 has a syntax error at 28032, missing semi-colon
-
;; Download YACC if not available
(unless (file-exists-p php-yacc-file)
(message
"Downloading PHP 8.1 YACC grammar.. since %S does not exists"
php-yacc-file)
- (url-copy-file
- php-yacc-url
- php-yacc-file
- t
- t)
+ (with-current-buffer (url-retrieve-synchronously php-yacc-url)
+ (write-file php-yacc-file))
(message
"Download of PHP 8.1 YACC grammar completed"))
- [elpa] externals/phps-mode 0f355f6f4d 05/15: Formatted automation output as elisp comments, (continued)
- [elpa] externals/phps-mode 0f355f6f4d 05/15: Formatted automation output as elisp comments, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode ccbb452889 04/15: Fixed automatic grammar translation from PHP 8.1 YACC, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode 2122f23ad1 01/15: Added failing indentation case, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode 924fb345ec 06/15: Minor tweaks in parser generation automation, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode b82471b38a 09/15: Removed TODO item, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode 85eed0d30e 07/15: Updated parser to PHP 8.1, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode bc2ecad56a 11/15: More work on PHP 8.1, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode b5fcf0e7b7 02/15: Updated automation for PHP 8.1, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode 3e1142c30c 14/15: Passing bookkeeping tests with PHP 8.1 parser and AST, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode be18349ec9 15/15: Updated version, date and TODO, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode fe89129aaa 03/15: More work on PHP 8.1 automation,
Christian Johansson <=
- [elpa] externals/phps-mode 10336eed90 08/15: Parser now handles multiple alternative cases switch case statement, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode d7ae56f698 10/15: Passing imenu-tests for PHP 8.1, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode faf6632911 13/15: Improved SDT for more infix operators, Christian Johansson, 2022/02/26
- [elpa] externals/phps-mode 16ec02520a 12/15: Fixed ampersand in lexer, Christian Johansson, 2022/02/26