Skip to content

Instantly share code, notes, and snippets.

@mgritter
Last active August 21, 2020 05:53
Show Gist options
  • Select an option

  • Save mgritter/7775e1a2adeef499a66dde9a88692142 to your computer and use it in GitHub Desktop.

Select an option

Save mgritter/7775e1a2adeef499a66dde9a88692142 to your computer and use it in GitHub Desktop.
Soffit grammar: binary tree with colored nodes
{
"version" : "0.1",
"N[leaf]" :
"N[internal]; L1[leaf]; L2[leaf]; N->L1; N->L2",
"N[leaf]; N1[leaf]; N2[leaf];" :
"N[style=filled; fillcolor=green; label=\"\"; shape=circle]; N1[leaf]; N2[leaf];",
"X[internal]":
"X[style=filled; fillcolor=brown; label=\"\"; shape=circle];",
"start" : "LEAF[leaf]"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment