[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode b5fcf0e7b7 02/15: Updated automation for PHP
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode b5fcf0e7b7 02/15: Updated automation for PHP 8.1 |
Date: |
Sat, 26 Feb 2022 02:06:35 -0500 (EST) |
branch: externals/phps-mode
commit b5fcf0e7b7ded97931e265ce8bc6a245a0e6d307
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Updated automation for PHP 8.1
---
phps-mode-automation-parser-generator.el | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/phps-mode-automation-parser-generator.el
b/phps-mode-automation-parser-generator.el
index 140954d4c6..9398474c47 100644
--- a/phps-mode-automation-parser-generator.el
+++ b/phps-mode-automation-parser-generator.el
@@ -54,20 +54,23 @@
(defun phps-mode-automation-parser-generator--ensure-yacc-grammar-is-available
()
"If grammar is not available, download it."
(let ((php-yacc-url
-
"https://raw.githubusercontent.com/php/php-src/php-8.0.0/Zend/zend_language_parser.y")
+
"https://raw.githubusercontent.com/php/php-src/PHP-8.1/Zend/zend_language_parser.y")
(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.0 YACC grammar.. since %S does not exists"
php-yacc-file)
+ "Downloading PHP 8.1 YACC grammar.. since %S does not exists"
php-yacc-file)
(url-copy-file
- php-yacc-url php-yacc-file
+ php-yacc-url
+ php-yacc-file
t
t)
(message
- "Download of PHP 8.0 YACC grammar completed"))
+ "Download of PHP 8.1 YACC grammar completed"))
(unless (file-exists-p php-yacc-file)
(error "Missing PHP YACC grammar at %s!" php-yacc-file))))
@@ -354,6 +357,13 @@
))
+ ;; (message
+ ;; "token: %S from %S"
+ ;; token
+ ;; (buffer-substring-no-properties
+ ;; (car (cdr token))
+ ;; (cdr (cdr token))))
+
token)))))
(when (boundp 'parser-generator-lex-analyzer--get-function)
@@ -389,7 +399,7 @@
(kill-region delimiter-start (point-max)))
(goto-char (point-min))
- ;; (message "Buffer:\n%S" (buffer-substring-no-properties (point-min)
(point-max)))
+ (message "Buffer:\n%S" (buffer-substring-no-properties (point-min)
(point-max)))
(let ((productions (eval (car (read-from-string
(parser-generator-lr-translate))))))
- [elpa] externals/phps-mode updated (a42188a24f -> be18349ec9), Christian Johansson, 2022/02/26
- [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 <=
- [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, 2022/02/26
- [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