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

feat: print note and account source code on show commands in the CLI #495

Open
tomyrd opened this issue Aug 26, 2024 · 1 comment
Open

Comments

@tomyrd
Copy link
Collaborator

tomyrd commented Aug 26, 2024

In #492 we removed the source code section when when showing notes and accounts in the CLI because the ProgramAst type was removed in favor of a MastForest. Is there a way to retreive the original source code from it?

@bobbinth
Copy link
Contributor

Currently, there is no way to retrieve the original MASM from MAST - but there are two things we can do:

  1. For now, we can pretty-print MAST - it is slightly lower-level than MASM, but it is much better than ones and zeros (and is still sort of human readable).
  2. Once 0xPolygonMiden/miden-vm#1440 is addressed in miden-vm, we'll be able to optionally include the original source code into MastForest. At that point, we can print out MASM when it is available.

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

2 participants