Skip to content

Documentation request: Python AST #44

Open

Description

@dopatraman

Is it possible to document the target AST? Would help while contributing.

Not sure on the format most folks would find useful -- personally, I'd be a fan of a JSON blob where:

x = 1

is represented by

{
    "type": "expression",
    "operator": "assignment",
    "variable": "x",
    "value": "1"
}

Would this be useful for anyone?

Activity

  1. bjpop commented on Mar 14, 2019

    @bjpop
    Owner

    I think documentation in the form of some examples would be very helpful, yes.

    Can it be done with normal Haddock style comments in the source code?
    https://github.com/bjpop/language-python/blob/master/src/Language/Python/Common/AST.hs

    I'm not sure about the JSON style. Perhaps you can elaborate on why that would be a good way to do it?

    I would be very happy to accept pull requests for documentation.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions