Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse Symbol Table for Imported Functions #4

Open
bscan opened this issue May 16, 2022 · 0 comments
Open

Parse Symbol Table for Imported Functions #4

bscan opened this issue May 16, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@bscan
Copy link
Owner

bscan commented May 16, 2022

The Perl Navigator parses the symbol table to find imported functions, and then gets the file and line number from them. I would like to do something similar for Raku, but parsing the symbol table is not finding the results I need. I use nqp to parse and compile code in https://github.com/bscan/RakuNavigator/blob/master/server/src/raku/navigator.raku and then I would like to dump the symbol table. The following snippet works from within a script, but I would like to parse the symbol table from the $compiled code instead. Pull requests are more than welcome.

for ::.kv -> $k, $v {
    if ($k.starts-with('&')) {
         print $k, $v.signature.gist(), $v.file, $v.line;
    }
}
@bscan bscan added the help wanted Extra attention is needed label May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant