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

Tree of source() calls #20

Open
moodymudskipper opened this issue Mar 18, 2022 · 0 comments
Open

Tree of source() calls #20

moodymudskipper opened this issue Mar 18, 2022 · 0 comments

Comments

@moodymudskipper
Copy link
Owner

It's hard to make a tree of source() calls statically because they might be conditional and the path might be a variable or a call.

However we can source and build a tree of source calls as we go.

It could be displayed a bit like lobster::ast(), the last shown path is the last that was entered.

To do this we need to override source().

Each call to source updates a tree object on entry. We need a behaviour on exit too so we can know our depth in the tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant