|
|
|
|
|
by CalChris
2634 days ago
|
|
Seriously helpful article. Looking forward to the sequels. we can map each syntax tree to an interpreter
Maybe I'm being dense but I'm not sure what you mean by map here. A map is from set to set. I'm not thinking of an interpreter as a set. |
|
We can define a data type of expressions in our language, with addition, multiplication, etc.
Then we need the type of an interpreter which consumes program inputs and produces an output. I'll leave this abstract for now. By map, we just mean that we can write a Haskell function with this type If you're curious, here's some real symbolic evaluation code I wrote doing the same https://github.com/kadena-io/pact/blob/234ba3dd01f0df8b4e462...