I am using SBCL on AMD64 Gentoo Linux and Beaglebone Black (embedded Device ARMv7 OMAP8?TI), also Gentoo Linux).
Also I am using vim. I haven't done simv, quicklisp etc, because they doesn't want to work for me (compile/installation errors).
But this are spare problems for later decades...

Currently I am on the way to evaluate CL for me. Its "being different" makes me curious.
For the first, I want a "Shortwave broadcaster schedule" available from HFCC into a simplyfied database
(CL internal, no sqlite, postgres engine etc...).
The input file, which is ASCII and which I dont want to alter looks like this:
Code: Select all
; B14 ALL 25-mar-2015
; Global HF Schedule
; Processed on 25-mar-2015 at 14:50UTC
; Timestamp: 1427295016
;----+----+----+------------------------------+---+----+-------+---+---+-------+------+------+-+-----+----------+---+---+---+-----+-+-----+-----+-----+-------
;FREQ STRT STOP CIRAF ZONES LOC POWR AZIMUTH SLW ANT DAYS FDATE TDATE MOD AFRQ LANGUAGE ADM BRC FMO REQ# OLD ALT1 ALT2 ALT3 NOTES
;----+----+----+------------------------------+---+----+-------+---+---+-------+------+------+-+-----+----------+---+---+---+-----+-+-----+-----+-----+-------
3185 0000 1300 4,9 WRB 100 45 0 902 1234567 271014 290315 D Eng USA WRB FCC 430
3195 0100 0400 2-4 WRB 100 0 0 805 1234567 261014 011114 D Eng USA WRB FCC 431
3195 0100 0400 2-4 WRB 100 0 0 805 1234567 080315 290315 D Eng USA WRB FCC 432
3195 0200 0500 2-4 WRB 100 0 0 805 1234567 021114 070315 D Eng USA WRB FCC 433
The input varies sometimes:
Code: Select all
5960 1900 2000 28E,29 NAU 100 90 0 146 7 261014 310115 D 9600 Mul D CHW MBR 17321 Z.351
5960 2000 2100 27,28W CER 150 310 0 146 1234567 261014 290315 D Eng ALB CRI RTC 6328
5960 2100 2200 27,28W CER 150 310 0 146 1234567 261014 290315 D Eng ALB CRI RTC 6329
5960 2200 2300 43E,44 SLA 250 60 25 211 1234567 280115 290315 D 7900 Eng OMA BBC BAB 17150 ENASE_F
5960 2300 2400 5,8,9,11N,17,18,27,28W EMR 500 310 0 215 1234567 261014 290315 D 9000 Eng TUR TRT TRT 7577
5960 2330 1800 42N URU 100 0 0 925 1234567 261014 290315 D Zho CHN CNR RTC 6330
5965 0445 1015 41N JAM 50 0 0 700 1234567 261014 290315 D 6075 Mul IND AIR AIR 11073
5965 0900 1000 44NE,45N BEI 150 95 0 206 1234567 261014 290315 D 7700 Chn CHN CRI RTC 6331
1.What is the recommended way to read this file with LISP?
2.How can I the columns into plists (property list) or should I use a hash table (how).
3.How can I store the stuff for later use?
4.Is it possible to read the line
as a setup information for the plist/hashtable, so that future changes of the input may be taken into account without the need of changing the Lisp code as such?;FREQ STRT STOP CIRAF ZONES LOC POWR AZIMUTH SLW ANT DAYS FDATE TDATE MOD AFRQ LANGUAGE ADM BRC FMO REQ# OLD ALT1 ALT2 ALT3 NOTES
Thank you very much in advance for any help!
Best regards,
mcc