Parsing of amount in fee period specification.
This commit is contained in:
parent
259a2664a0
commit
055f7ba030
2 changed files with 32 additions and 9 deletions
|
|
@ -43,6 +43,8 @@
|
|||
cal-period-before
|
||||
cal-period-scomment
|
||||
cal-period-bcomment
|
||||
|
||||
set-cal-period-scomment
|
||||
|
||||
period-markers->cal-periods
|
||||
|
||||
|
|
@ -142,6 +144,14 @@
|
|||
(define cal-period-scomment cadddr)
|
||||
(define cal-period-bcomment (compose cadddr cdr))
|
||||
|
||||
;; Direct updater
|
||||
(define (set-cal-period-scomment p c)
|
||||
(list TAG-CAL-PERIOD
|
||||
(cal-period-since p)
|
||||
(cal-period-before p)
|
||||
c
|
||||
(cal-period-bcomment p)))
|
||||
|
||||
;; Type predicate
|
||||
(define (cal-period? p)
|
||||
(and (pair? p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue