[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 1072b2d 14/62: Improved debugging of lex-anal
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode 1072b2d 14/62: Improved debugging of lex-analyzer |
Date: |
Tue, 20 Apr 2021 10:56:14 -0400 (EDT) |
branch: externals/phps-mode
commit 1072b2d4dc6efd8cedb3bbd6feb25ec02602fdc0
Author: Christian Johansson <christian@mediastrategi.se>
Commit: Christian Johansson <christian@mediastrategi.se>
Improved debugging of lex-analyzer
---
phps-mode-lexer.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/phps-mode-lexer.el b/phps-mode-lexer.el
index ec98b79..4db57f1 100644
--- a/phps-mode-lexer.el
+++ b/phps-mode-lexer.el
@@ -246,6 +246,11 @@
"Emit TOKEN with START and END."
(semantic-lex-push-token (semantic-lex-token token start end))
(push `(,token ,start . ,end) phps-mode-lexer--generated-tokens)
+
+ (phps-mode-debug-message
+ (message
+ "Emitted token %s"
+ `(,token ,start . ,end)))
;; Push token start, end, lexer state and state stack to variable
(push
@@ -445,6 +450,7 @@
(phps-mode-lexer--match-macro
(and ST_IN_SCRIPTING (looking-at "exit"))
+ (message "was here")
(phps-mode-lexer--return-token-with-indent 'T_EXIT))
(phps-mode-lexer--match-macro
- [elpa] externals/phps-mode 6ffce34 42/62: More work on implementing grammar, (continued)
- [elpa] externals/phps-mode 6ffce34 42/62: More work on implementing grammar, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode fa61295 41/62: More work on grammar, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 9a9c296 44/62: More grammar implementation, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 9e291dc 47/62: Excluded admin-files from compilation, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 9011c85 32/62: Updated copyright years, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 85ed75d 46/62: More work on automated parser generation, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode aeec1d2 55/62: Removed comment, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 62e7617 61/62: Merged GitHub, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode cd3bbfd 02/62: More work on PHP 8.0 lex analyzer, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 804a42e 09/62: Most of lex analyzer implemented, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 1072b2d 14/62: Improved debugging of lex-analyzer,
Christian Johansson <=
- [elpa] externals/phps-mode 9c63f7d 16/62: Passed first old tests for lexer, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode e624011 19/62: White-space fixes for lexer unit tests, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode d893f7f 22/62: Passing some more tests, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode c1ab121 25/62: Work on making integration-tests pass, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode ad4e825 20/62: Added some new lex analyzer tests for PHP 8.0 tokens, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode a418e41 26/62: Integration-test now comparing nest-location-stack as well, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode f1b513c 27/62: Passed another integration test, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode a900472 29/62: Passed bookkeeping tests, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 685375c 31/62: Passing all unit tests after updated lex-analyzer, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 050fe6a 36/62: Updated version and modified date, Christian Johansson, 2021/04/20