branch: externals/phps-mode
commit b3b27951bd5f45fe3f95728a185fa432c87dd60d
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>

    More work on bookkeeping
---
 phps-mode-ast.el | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/phps-mode-ast.el b/phps-mode-ast.el
index 5a272f61ed..0af367a577 100644
--- a/phps-mode-ast.el
+++ b/phps-mode-ast.el
@@ -198,6 +198,14 @@
      ast-object))
  phps-mode-parser--table-translations)
 
+;; if_stmt_without_else -> (T_IF "(" expr ")" statement)
+(puthash
+ 223
+ (lambda(args terminals)
+   (message "if_stmt_without_else: %S" args terminals)
+   args)
+ phps-mode-parser--table-translations)
+
 ;; class_statement_list -> (class_statement_list class_statement)
 (puthash
  276
@@ -238,7 +246,7 @@
 (puthash
  337
  (lambda(args terminals)
-   (message "expr: %S %S" args terminals)
+   ;; (message "expr: %S %S" args terminals)
    (let ((ast-object
           (list
            'type
@@ -257,6 +265,23 @@
      ast-object))
  phps-mode-parser--table-translations)
 
+;; simple_variable -> (T_VARIABLE)
+(puthash
+ 492
+ (lambda(args terminals)
+   ;; (message "simple_variable: %S %S" args terminals)
+   (let ((ast-object
+          (list
+           'type
+           'variable
+           'name
+           args
+           'start
+           (car (cdr terminals))
+           (cdr (cdr terminals)))))
+     ast-object))
+ phps-mode-parser--table-translations)
+
 
 ;; Functions:
 

Reply via email to