Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Show an expression graph for a combinator expression
ResourceFunction["CombinatorExpressionGraph"][cmb] creates an expression graph for the combinator expression cmb. |
| "CombinatorRules" | Automatic | transformation rules for combinators |
| "CombinatorStyles" | Automatic | highlight and background colors for combinator rule matches |
| "EvaluationScheme" | {"Leftmost", "Outermost", Infinity} | evaluation scheme for combinator rule matches |
| "ShowVertexLabels" | True | whether to display symbols of atoms in the expression graph |
| "UpdateHighlighting" | {} | show updates via "Nodes", "Numbers", and/or "Subtrees" |
| "MatchHighlighting" | False | whether root node of subtree is colored according to rule match |
| "SKGlyphs" | Automatic | symbols used to specify S and K combinators |
Show an expression graph for a combinator expression:
| In[1]:= |
|
| Out[1]= |
|
Show an expression graph where the rule match is indicated:
| In[2]:= |
|
| Out[2]= |
|
Define custom rules and styles for combinator expression graph rendering:
| In[3]:= |
|
| Out[3]= |
|
Select update events by defining an evaluation scheme, and label updates with the order in which they occur:
| In[4]:= |
|
| Out[4]= |
|
Compare the update orders imposed by each different evaluation scheme on a combinator expression:
| In[5]:= |
|
| Out[5]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License