[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/parser-generator 356720c 030/434: Passing all unit test
From: |
ELPA Syncer |
Subject: |
[elpa] externals/parser-generator 356720c 030/434: Passing all unit tests using new data structure |
Date: |
Mon, 29 Nov 2021 15:59:02 -0500 (EST) |
branch: externals/parser-generator
commit 356720c2bb3c969015865cbaaf0f0ba7ca264b1c
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Passing all unit tests using new data structure
---
parser.el | 2 +-
test/parser-test.el | 16 +++++-----------
2 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/parser.el b/parser.el
index 60eb3ab..1208d27 100644
--- a/parser.el
+++ b/parser.el
@@ -11,7 +11,7 @@
(defvar parser--debug
- t
+ nil
"Whether to print debug messages or not.")
(defvar parser--table-terminal-p
diff --git a/test/parser-test.el b/test/parser-test.el
index 80d81b4..b66379a 100644
--- a/test/parser-test.el
+++ b/test/parser-test.el
@@ -120,11 +120,10 @@
(parser--first 'S)))
(message "Passed first 2 with complex grammar")
- (parser--set-grammar '((S A B C) (a b c) ((S A B) (A (B a) e) (B (C b) C) (C
c e)) S) 3)
- (message "FIRST = %s" (parser--first 'S))
+ (parser--set-grammar '((S A B C) (a b c) ((S (A B)) (A (B a) e) (B (C b) C)
(C c e)) S) 3)
(should
(equal
- '((a) (a b) (a c) (a c b) (b) (b a) (b a b) (b a c) c (c a) (c a b) (c a
c) (c b) (c b a) (e))
+ '((a c b) (a) (a c) (a b) (c a) (c a c) (c a b) (b a) (b a c) (b a b) (c
b) (e) (c) (b) (c b a))
(parser--first 'S)))
(message "Passed first 3 with complex grammar")
@@ -136,16 +135,11 @@
(message "Starting tests for (parser--e-free-first)")
;; Example 5.28 p 402
+ (parser--set-grammar '((S A B C) (a b c) ((S (A B)) (A (B a) e) (B (C b) C)
(C c e)) S) 2)
(should
(equal
- '(("c" "a") ("c" "b"))
- (parser--e-free-first
- 2
- 'S
- '((S (A B))
- (A (B "a") e)
- (B (C "b") C)
- (C "c" e)))))
+ '((c b) (c a))
+ (parser--e-free-first 'S)))
(message "Passed empty-free-first 2 with complex grammar")
(message "Passed tests for (parser--empty-free-first)"))
- [elpa] branch externals/parser-generator created (now 4a3a51d), ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator b93ab8c 001/434: My initial commit, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator b8faa17 002/434: FIRSTk and EFFk working, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator ee0a623 003/434: Added TRAVIS and LICENSE, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator f5bfa40 004/434: Fixed typo in README, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 58798c8 010/434: Starting on calculation of valid LK-sets for a valid grammar prefix, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator f9c8348 008/434: Updated Travis and Makefil rule name, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 5f65cfc 015/434: More refactoring, using lists instead of string as grammar data type, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator f2791c1 022/434: Passed unit test 3 intermediate grammar, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 5d9b98c 011/434: Added functions to validate G and k and tests, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 356720c 030/434: Passing all unit tests using new data structure,
ELPA Syncer <=
- [elpa] externals/parser-generator e4fd795 007/434: Added compilation to test, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 42d92f1 014/434: More refactoring, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator f648b52 020/434: Passing first unit test for FIRST after new data-structure refactor, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator a4bbb2f 026/434: Using PDA algorithm for FIRST when β is above 1 symbol, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator e02d5d7 049/434: More work on calculating valid LR-items, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 0465b58 045/434: Improved commenting, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 85dde51 009/434: Added License and Travis build logos, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 7bc3b70 017/434: Updated tests to use new data structure, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator ab4b4db 021/434: Passed second FIRST test again, ELPA Syncer, 2021/11/29
- [elpa] externals/parser-generator 80cf73d 019/434: Passing tests for valid-grammar syntax, ELPA Syncer, 2021/11/29