Files
WoofWare.Myriad/ConsumePlugin/Catamorphism.fs
2024-02-17 23:16:54 +00:00

23 lines
399 B
Forth

namespace ConsumePlugin
open WoofWare.Myriad.Plugins
type Const =
| Int of int
| String of string
type PairOpKind =
| NormalSeq
| ThenDoSeq
[<CreateCatamorphism "TreeCata">]
type Tree =
| Const of Const
| Pair of Tree * Tree * PairOpKind
| Sequential of Tree list
| Builder of Tree * TreeBuilder
and TreeBuilder =
| Child of TreeBuilder
| Parent of Tree