Skip to content

Implement astToDict Utility #9

Closed
@jhgg

Description

@jhgg

Since we use slotted classes for ASTs, we need a way to convert an AST Node to a Dict.

I.e. Name(value='test') Should get converted to {"kind": "Name", "value": "test"}.

It should convert recursively.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions