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

BrsFile ast toString() #754

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

BrsFile ast toString() #754

wants to merge 4 commits into from

Conversation

TwitchBronBron
Copy link
Member

@TwitchBronBron TwitchBronBron commented Dec 2, 2022

Adds the ability to call .toString() on any brightscript/brighterscript AST nodes and get the current string representation of them.

Issues to resolve before merging:

  • unary expressions are not generating properly
    image

  • conditional compile blocks are not generating properly
    image

  • handle plugin-contributed tokens that might not have all of the necessary leading or trailing trivia. This might hard, so it may be more useful to build a full set of Ast Node creator functions that auto-add the necessary trivia on creation.

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

Successfully merging this pull request may close these issues.

1 participant