-
Notifications
You must be signed in to change notification settings - Fork 0
/
x.l
57 lines (46 loc) · 987 Bytes
/
x.l
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(load "csv.l")
(load "xnet.l")
(load "nmap.l")
# classes
(class +Source +Entity)
(rel id (+Key +Number))
(rel nm (+String))
(rel cmd (+String))
(class +Collection +Entity)
(rel id (+Key +Number))
(rel nm (+String))
(rel jt (+List +Joint) jt (+Datta))
(class +Datta +Entity)
(rel id (+Key +Number))
(rel ct (+String))
(rel dt (+Any))
(rel jt (+Joint) jt (+Collection))
# swedish administration
(class +Lan +Entity)
(rel id (+Key +Number))
(rel nm (+String))
(rel cd (+String))
(rel nr (+String))
(rel cs (+List +Link) (+Collection))
# functions
(de newLan (Nm Code Nr)
(new! '(+Lan)
'id (genKey 'id '+Lan)
'nm Nm
'cd Code
'nr Nr)
(commit 'upd))
(de w3mhtml (Url)
(make
(in (list 'w3m Url)
(until (eof)
(link
(pack (line)))))))
(de w3msrc (Url)
(make
(in (list 'w3m "-dump_source" Url)
(until (eof)
(link
(pack (line)))))))
(de dbupd ()
())