[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/parseclj b2e97ecb57 017/185: Lets try that again #travis
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/parseclj b2e97ecb57 017/185: Lets try that again #travis |
Date: |
Tue, 28 Dec 2021 14:05:09 -0500 (EST) |
branch: elpa/parseclj
commit b2e97ecb57dfdfbd7bd6bd61165a5eecb5d52aac
Author: Arne Brasseur <arne@arnebrasseur.net>
Commit: Arne Brasseur <arne@arnebrasseur.net>
Lets try that again #travis
---
.travis.yml | 22 ++++++++++++----------
clj-parse.el | 26 ++++++++++++++++++--------
2 files changed, 30 insertions(+), 18 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 923d739ab5..e704356b7b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,19 +1,21 @@
language: generic
-env:
- - VERSION=24.3.1 EMACS=emacs PPA=ppa:ubuntu-elisp PACKAGE=emacs-snapshot
- - VERSION=25.2.2 EMACS=emacs-25.2 PPA=ppa:kelleyk/emacs PACKAGE=emacs25
- - VERSION=25.2.2 EMACS=emacs-25.2 PPA=ppa:kelleyk/emacs PACKAGE=emacs25
CLJ_PARSE_LINT=true
+dist: trusty
+# env:
+# - VERSION=24.3.1 EMACS=emacs PPA=ppa:ubuntu-elisp PACKAGE=emacs-snapshot
+# - VERSION=25.2.2 EMACS=emacs-25.2 PPA=ppa:kelleyk/emacs PACKAGE=emacs25
+# - VERSION=25.2.2 EMACS=emacs-25.2 PPA=ppa:kelleyk/emacs PACKAGE=emacs25
CLJ_PARSE_LINT=true
-matrix:
- allow_failures:
- - env: VERSION=25.2.1 EMACS=emacs-25.2 PPA=ppa:kelleyk/emacs
PACKAGE=emacs25 CLJ_PARSE_LINT=true
+# matrix:
+# allow_failures:
+# - env: VERSION=25.2.1 EMACS=emacs-25.2 PPA=ppa:kelleyk/emacs
PACKAGE=emacs25 CLJ_PARSE_LINT=true
before_install:
- - sudo add-apt-repository -y $PPA
+ # - sudo add-apt-repository -y $PPA
- sudo apt-get update -qq
- - sudo apt-get install -qq $PACKAGE
+ - sudo apt-get install -qq emacs
script:
+ - apt-cache search emacs
- $EMACS --version
- - $EMACS --version | grep $VERSION
+ # - $EMACS --version | grep $VERSION
- $EMACS -batch -l clj-parse-test-runner.el
diff --git a/clj-parse.el b/clj-parse.el
index e240610c3e..de3828e913 100644
--- a/clj-parse.el
+++ b/clj-parse.el
@@ -32,15 +32,22 @@
(require 'clj-lex)
(defun clj-parse ()
- (clj-parse* 'clj-parse-elisp-reducer))
+ (clj-parse-reduce 'clj-parse-edn-reduce1 'clj-parse-edn-reduceN))
-(defun clj-parse-elisp-reducer (type value)
+(defun clj-parse-edn-reduce1 (stack token)
+ )
+
+(defun clj-parse-edn-reduceN (stack type coll)
(cl-case type
(:whitespace :ws)
- (:number value)
- (:list value)))
+ (:number coll)
+ (:list coll)))
+
+(defun clj-parse-terminal? (token)
+ (cdr (assq ('type token)))
+ )
-(defun clj-parse* (reducer)
+(defun clj-parse-reduce (reduce1 reducer)
(let ((stack nil)
(token (clj-lex-next)))
(while (not (eq (cdr (assq 'type token)) :eof))
@@ -48,11 +55,14 @@
;; (print token)
;; (print stack)
(let-alist token
+ (setf stack
+ (if (clj-parse-terminal? token)
+ ))
(cl-case .type
(:whitespace
- (push (funcall reducer :whitespace .form) stack))
+ (push (funcall reducer stack :whitespace .form) stack))
(:number
- (push (funcall reducer :number .value) stack))
+ (push (funcall reducer stack :number .value) stack))
(:lparen
(push token stack))
(:rparen
@@ -61,7 +71,7 @@
(push (pop stack) list))
(pop stack) ;; :lparen
;; (print list)
- (push (funcall reducer :list list) stack)))))
+ (push (funcall reducer stack :list list) stack)))))
(setq token (clj-lex-next)))
stack))
- [nongnu] elpa/parseclj 92396d11cf 127/185: Merge pull request #17 from lambdaisland/travis-evm, (continued)
- [nongnu] elpa/parseclj 92396d11cf 127/185: Merge pull request #17 from lambdaisland/travis-evm, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj f87278a70e 135/185: Merge pull request #18 from clojure-emacs/doc-&-style-fixes-part-2, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj eedc0d812e 168/185: Update docstring and metion Emacs 27 alternative, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 815ba87a77 137/185: Merge pull request #19 from clojure-emacs/update-readme, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 9e0b51e39c 160/185: revert tabs to spaces, address minor review comments, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj bdd6489128 003/185: add travis badge, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj f6b8ad665c 004/185: Fix .travis.yml, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 3ec632ed66 008/185: Travis show Emacs version, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 7cf7dc99cd 011/185: Travis: only install the necessary ppa/package for each matrix line, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 710511ff79 013/185: Seems these packages dont actually package the versioned executable names, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj b2e97ecb57 017/185: Lets try that again #travis,
ELPA Syncer <=
- [nongnu] elpa/parseclj d7adaa5177 018/185: Lets try that again #travis, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj abe7edb04b 019/185: Bunch of refactoring, but we're green now, supposedly, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 56bb020a9e 020/185: Fix the travis yaml?, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 972161dd23 022/185: Make sure we test against the version we think we are testing against, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 792ba04647 024/185: A more elaborate test, nesting works!, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 452fe7cc76 023/185: Implement nil, true, false, symbol, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 67171853f5 026/185: lex characters, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 4f54ba52fe 033/185: Add support for sets, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 4f647c8cff 036/185: Remove duplicate defination of clj-lex--token-token, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 1b2b221c98 038/185: Add AST to Elisp and Clojure/EDN printers, ELPA Syncer, 2021/12/28