Hi,
I'm trying to write a Guile script to trace symbol definition and reference
between modules in a large Guile repo (GNU/Guix), for the purposes of large
scale refactoring.
I'm wondering how I could programmatically get all the values in a
Scheme file
as an S-expression. From the manual, I know that the REPL has meta keyword
',binding' and ',apropos'
<https://www.gnu.org/software/guile/manual/guile.html#index-apropos>
which let
you search and list all bindings in accessible to a module. These are
exactly
what I need only, since they're meta-commands, they don't produce Scheme
expressions.
Does anyone have any pointers? Should I go down the route of,
(open-input-pipe (string-append "guile -l" file "-c ,binding"))
? Seems a little bit baroque to me, I'd expect a simpler way of doing
it. Any
libraries anyone knows of?
Kind regards,
- Christina