how can I use elisp to print dependencies of a code?

73 Views Asked by At

I am trying to print the dependencies associated with a code, such as definitions related to functions or variables in a statement using Emacs, however I am not finding the functions necessary to do it. I have already been able to parse the code, now I just need the printing part, for which I have been looking into the srecode package without success.

It will be a necessary step to translate Java code into C or C++

2

There are 2 best solutions below

0
Hank Lenzi On

What "code"? In what programming language? There are packages for different programming languages that could help. You need to be more specific.

0
jeferson lemos On

to use emacs at this point perharps was a bad idea. I searched for code slicing and found some tools here: slicers. For the translation part I may use code from cogre-srecode.el from the cogre package of cedet and for it the manual of srecode is better