Card alias parsing.

This commit is contained in:
Dominik Pantůček 2023-03-25 21:50:47 +01:00
parent 2d0ff00ffb
commit 4d43ce29d8
4 changed files with 28 additions and 4 deletions

View file

@ -40,7 +40,8 @@
testing
dictionary
month
period)
period
utils)
;; Pass 2: known keys and multikeys
(define member-schema-known-keys '(nick mail phone name born joined destroyed))
@ -88,6 +89,15 @@
(member-record-add-highlight mr1 line-number msg 3 'error))))
((joined)
(member-record-sub-set mr output key (string->month (car value))))
((card desfire)
(member-record-sub-set mr output key
(map
(lambda (rec)
(string-first+rest (car rec)))
value)))
((credit)
;; TODO
mr)
(else
(member-record-sub-set mr output key (car value))))))))