Text processing/2: Difference between revisions
Content added Content deleted
(Added Erlang) |
('find' -> 'fully') |
||
Line 1,557: | Line 1,557: | ||
(= 49 (length Lst)) # Check total length |
(= 49 (length Lst)) # Check total length |
||
($dat (car Lst) "-") # Check for valid date |
($dat (car Lst) "-") # Check for valid date |
||
( |
(fully # Check data format |
||
( |
'((L F) |
||
(if F # Alternating: |
|||
( |
(format L 3) # Number |
||
(>= 9 (format L) -9) ) ) # or flag |
|||
(cdr Lst) |
|||
'(T NIL .) ) ) |
|||
(cdr Lst) |
|||
'(T NIL .) ) ) ) |
|||
(prinl "Bad line format: " (glue " " Lst)) |
(prinl "Bad line format: " (glue " " Lst)) |
||
(bye 1) ) ) ) ) |
(bye 1) ) ) ) ) |