Skip to content

[DX] standard formatter #20

@xieyuheng

Description

@xieyuheng

Problem:

We need a standard formatter.

To help users avoid arguing about code formating.

Solution 1:

Implement formatExp and formatStmt(s).

These functions should take formatting context as argument,
and recurse down the Exp and Stmt.

Solution 2:

Learn from prettier API, and write prettier plugin.

https://prettier.io/docs/en/plugins.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions