Skip to content

Fix pretty print #7

@WilliamRagstad

Description

@WilliamRagstad

Now when some expressions and atoms are being printed, they do not adapt to the previous indentation.
Fix this by adding a parameter to toString on both Expr and Atom which holds a "previous indentation" string and indent all lines with this concatenated to at the beginning of the string.
There should also be a setting somewhere (maybe on the Interpreter) specifying indentation type (2 spaces/ 4 spaces/tabs/etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions