[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 38ccb4e728 019/135: More SDT for argument and
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode 38ccb4e728 019/135: More SDT for argument and union_type and intersection_type |
Date: |
Sun, 29 Jan 2023 03:11:00 -0500 (EST) |
branch: externals/phps-mode
commit 38ccb4e728fb991c364b7cd05f2d41a4f5321982
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
More SDT for argument and union_type and intersection_type
---
phps-mode-parser-sdt.el | 111 ++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 103 insertions(+), 8 deletions(-)
diff --git a/phps-mode-parser-sdt.el b/phps-mode-parser-sdt.el
index e5b1c3b8d5..608bdf6244 100644
--- a/phps-mode-parser-sdt.el
+++ b/phps-mode-parser-sdt.el
@@ -2422,25 +2422,120 @@
;; 263 ((type) (T_STATIC))
(puthash 263 (lambda(_args _terminals) 'T_STATIC)
phps-mode-parser--table-translations)
+;; 264 ((union_type) (type "|" type))
+(puthash 264 (lambda(args _terminals) (list (nth 0 args) (nth 2 args)))
phps-mode-parser--table-translations)
-;; TODO WAS HERE
+;; 265 ((union_type) (union_type "|" type))
+(puthash 265 (lambda(args _terminals) (append (nth 0 args) (list (nth 2
args)))) phps-mode-parser--table-translations)
+
+;; 266 ((intersection_type) (type T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG
type))
+(puthash 266 (lambda(args _terminals) (list (nth 0 args) (nth 2 args)))
phps-mode-parser--table-translations)
+
+;; 267 ((intersection_type) (intersection_type
T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type))
+(puthash 267 (lambda(args _terminals) (append (nth 0 args) (list (nth 1
args)))) phps-mode-parser--table-translations)
+
+;; 268 ((type_expr_without_static) (type_without_static))
+(puthash 268 (lambda(args _terminals) args)
phps-mode-parser--table-translations)
+
+;; 269 ((type_expr_without_static) ("?" type_without_static))
+(puthash 269 (lambda(args _terminals) args)
phps-mode-parser--table-translations)
+
+;; 270 ((type_expr_without_static) (union_type_without_static))
+(puthash 270 (lambda(args _terminals) args)
phps-mode-parser--table-translations)
+
+;; 271 ((type_expr_without_static) (intersection_type_without_static))
+(puthash 271 (lambda(args _terminals) args)
phps-mode-parser--table-translations)
+
+;; 272 ((type_without_static) (T_ARRAY))
+(puthash 272 (lambda(args _terminals) 'T_ARRAY)
phps-mode-parser--table-translations)
+
+;; 273 ((type_without_static) (T_CALLABLE))
+(puthash 273 (lambda(args _terminals) 'T_CALLABLE)
phps-mode-parser--table-translations)
+
+;; 274 ((type_without_static) (name))
+(puthash 273 (lambda(args _terminals) args)
phps-mode-parser--table-translations)
+
+;; 275 ((union_type_without_static) (type_without_static "|"
type_without_static))
+(puthash 275 (lambda(args _terminals) (list (nth 0 args) (nth 2 args)))
phps-mode-parser--table-translations)
+
+;; 276 ((union_type_without_static) (union_type_without_static "|"
type_without_static))
+(puthash 276 (lambda(args _terminals) (append (nth 0 args) (list (nth 2
args)))) phps-mode-parser--table-translations)
+
+;; 277 ((intersection_type_without_static) (type_without_static
T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type_without_static))
+(puthash 277 (lambda(args _terminals) (list (nth 0 args) (nth 2 args)))
phps-mode-parser--table-translations)
+
+;; 278 ((intersection_type_without_static) (intersection_type_without_static
T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type_without_static))
+(puthash 278 (lambda(args _terminals) (append (nth 0 args) (list (nth 2
args)))) phps-mode-parser--table-translations)
+;; 279 ((return_type) (%empty))
+(puthash 279 (lambda(_args _terminals) nil)
phps-mode-parser--table-translations)
+;; 280 ((return_type) (":" type_expr))
+(puthash 280 (lambda(args _terminals) (nth 1 args))
phps-mode-parser--table-translations)
-;; argument_list -> ("(" ")")
+;; 281 ((argument_list) ("(" ")"))
+(puthash 281 (lambda(_args _terminals) nil)
phps-mode-parser--table-translations)
+
+;; 282 ((argument_list) ("(" non_empty_argument_list possible_comma ")"))
+(puthash 282 (lambda(args _terminals) (nth 1 args))
phps-mode-parser--table-translations)
+
+;; 283 ((argument_list) ("(" T_ELLIPSIS ")"))
+(puthash 283 (lambda(_args _terminals) 'T_ELLIPSIS)
phps-mode-parser--table-translations)
+
+;; 284 ((non_empty_argument_list) (argument))
+(puthash 284 (lambda(args _terminals) (list (nth 0 args)))
phps-mode-parser--table-translations)
+
+;; 285 ((non_empty_argument_list) (non_empty_argument_list "," argument))
+(puthash 285 (lambda(args _terminals) (append (nth 0 args) (list (nth 2
args)))) phps-mode-parser--table-translations)
+
+;; 286 ((argument) (expr))
(puthash
- 281
- (lambda(_args _terminals)
- nil)
+ 286
+ (lambda(args _terminals)
+ `(
+ ast-type
+ argument
+ type
+ nil
+ value
+ ,args
+ )
+ )
phps-mode-parser--table-translations)
-;; argument_list -> ("(" non_empty_argument_list possible_comma ")")
+;; 287 ((argument) (identifier ":" expr))
(puthash
- 282
+ 287
(lambda(args _terminals)
- (nth 1 args))
+ `(
+ ast-type
+ argument
+ type
+ ,(nth 0 args)
+ value
+ ,(nth 2 args)
+ )
+ )
+ phps-mode-parser--table-translations)
+
+;; 288 ((argument) (T_ELLIPSIS expr))
+(puthash
+ 288
+ (lambda(args _terminals)
+ `(
+ ast-type
+ ellipsis-argument
+ value
+ ,(nth 2 args)
+ )
+ )
phps-mode-parser--table-translations)
+
+;; TODO WAS HERE
+
+
+
;; static_var_list -> (static_var_list "," static_var)
(puthash
292
- [elpa] externals/phps-mode cffad0d620 131/135: Merge branch 'feature/full-sdt', (continued)
- [elpa] externals/phps-mode cffad0d620 131/135: Merge branch 'feature/full-sdt', Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 249f8a2a4d 087/135: Work on bookkeeping class static variable, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 177b00f06a 132/135: Updated copyright years, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 0654fe8899 134/135: Updated documentation, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 6e43f9f6db 037/135: More messing around with SDT, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 86ad9e35ee 047/135: Renamed symbol id to symbol URI, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode dbaf508512 052/135: Work on getting bookkeeping for class properties working, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 531c98cf2b 053/135: Improved bookkeeping of class properties, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 5080effb1d 014/135: Added TODO item, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode cfcb795473 016/135: SDT for while_statement, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 38ccb4e728 019/135: More SDT for argument and union_type and intersection_type,
Christian Johansson <=
- [elpa] externals/phps-mode 7602348327 031/135: More SDT rules, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 7dcaa1df9e 034/135: Added SDT rules for all productions, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 258551c02a 035/135: More work on bookkeeping generation via SDT, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode e887dc91e3 043/135: Added TODO items, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 002b27bfb7 054/135: Started on bookkeeping support via SDT for class properties via object operator, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode ad3b10e716 055/135: Added variable reference to bookkeeping stack where it is referencing $this, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 911abb044e 024/135: SDT method_body, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 75743d0c25 022/135: Merge branch 'master' into feature/full-sdt, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 610358e2ef 026/135: SDT for property, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 4981a1eb45 032/135: SDT rules up to 520, Christian Johansson, 2023/01/29