-
Notifications
You must be signed in to change notification settings - Fork 0
/
library-objects.dylan
56 lines (51 loc) · 1.89 KB
/
library-objects.dylan
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
module: code-browser
Synopsis: Browse Open Dylan environment objects
Author: Andreas Bogk, Bastian Mueller, Hannes Mehnert
define body tag libraries in code-browser
(page :: <code-browser-page>, do-body :: <function>)
()
do(method (project-name)
block ()
let project = find-project(project-name);
open-project-compiler-database(project,
warning-callback: callback-handler,
error-handler: callback-handler);
parse-project-source(project);
let library = project-library(project);
if (library)
dynamic-bind(*project* = project, *environment-object* = library)
do-body();
end;
end;
exception (e :: <condition>)
output("***library %s failed: %=***<br>\n", project-name, e);
end block;
end, collect-projects());
end;
define body tag modules in code-browser
(page :: <code-browser-page>, do-body :: <function>)
()
do-library-modules(method(x)
dynamic-bind(*environment-object* = x)
do-body()
end;
end, *project*, *environment-object*);
end;
define body tag defined-modules in code-browser
(page :: <code-browser-page>, do-body :: <function>)
()
do-library-modules(method(x)
dynamic-bind(*environment-object* = x)
do-body()
end;
end, *project*, *environment-object*, imported?: #f);
end;
define body tag used-libraries in code-browser
(page :: <code-browser-page>, do-body :: <function>)
()
do-used-definitions(method(x)
dynamic-bind(*environment-object* = x)
do-body()
end;
end, *project*, *environment-object*);
end;