Skip to content

Convert wiring AST to Brick Diagrams v1 format #270

@sjoerdvisscher

Description

@sjoerdvisscher

todo

  • Convert ASTs roughly like this one into brick diagrams.
  • Add documentation (see the stuff below for example) to https://docs.statebox.org, e.g. here. Covered by Marco's 'How we store diagrams' document.
  • Add one or more test to check that the resulting Statebox.Core.Types.Diagram matches the expected one.

encoding

Erik: In the brick editor we can draw the following, but is it possible to encode this using a wiring tree? (??1!)

-------------
|     a     |
-------------
|  b  |  c  | 
-------------
|     d     |
-------------

Jelle: why not? a.output_1~b.input_1 a.o2~c.i1 b.o1~d.i1 c.o1~d.i2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions