Skip to content

Feature Request: Some small improvements for AST/ASR window #119

Description

@aerosayan

Hello,

I'm trying to develop a language that compiles down to Fortran 2008, and I found the AST/ASR output in LFortran's playground website to be useful.

Specifically I like that instead of always reading the language standard's EBNF grammar, we can see how the code is parsed and the AST is produced for valid Fortran code.

As a side note, I was surprised to see that the comments are not ignored, and instead kept as TriviaNodes in the AST.

Thanks for creating the "copy output" button, because that would probably be enough for me, as I can copy the text, and process it elsewhere.

However, if you think it would be useful for others, and not be a problem to develop, I may humbly request some small improvements.

I understand that the LFortran team would be busy, and this is not a priority feature, so maybe it could be a good task for first time contributors, so they can develop something that's helpful, but somewhat less challenging.

Requested features:

  • Feature to make the output window big, on demand.
  • Feature to control the tab/indentation of the AST/ASR output
  • Feature to control how the S-Expressions are shown. Currently we have to scroll a lot, and while that's okay, a more compact view maybe better for some.
  • Feature to hide/show the actual code along with the AST/ASR, so we can directly see which code is being translated to some AST/ASR node.
  • Feature to click some key on our actual code on the left window, and it taking us directly to the AST/ASR node in the output window.

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions