Skip to content

Commit

Permalink
Apply linter to rule-plus.scm
Browse files Browse the repository at this point in the history
  • Loading branch information
niyarin committed Jul 9, 2020
1 parent aa46159 commit 2ff9e38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/rules-plus.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(export rules+/match rules+/expand rules+/match-expand)
(begin
(define (%alists-distinct . args)
(let ((alist (apply append args)))
(let ((alist (concatenate args)))
(let loop ((als alist)
(res '())
(keys '()))
Expand Down Expand Up @@ -36,7 +36,7 @@
(null? input))
res)
((null? input) (break #f))
((not (pair? rule))
((not-pair? rule)
(%match ellipsis literals rule nests input res break))
((%ellipsis-rule? rule ellipsis)
(or (call/cc (lambda (_break)
Expand All @@ -50,7 +50,7 @@
_break)))
(loop rule (cdr input) _break (+ nest-cnt 1) new-res))))
(loop (cddr rule) input break 0 res)))
((not (pair? input))
((not-pair? input)
(break #f))
(else (loop (cdr rule)
(cdr input)
Expand Down Expand Up @@ -218,7 +218,7 @@
(let loop ((ls template)
(res-cell res-cell-top))
(cond
((not (pair? ls))
((not-pair? ls)
(set-cdr! res-cell (%expand ellipsis ls alist refs break))
(cdr res-cell-top))
((and (pair? (cdr ls))
Expand Down

0 comments on commit 2ff9e38

Please sign in to comment.