Skip to content

Instantly share code, notes, and snippets.

@mgritter
Created August 22, 2020 04:23
Show Gist options
  • Select an option

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

Select an option

Save mgritter/c609c9df59d3219ffa1901131d2841c2 to your computer and use it in GitHub Desktop.
Soffit grammar demonstrating a DPO guard
{
"C[hundred]; D[guard]; D->C": "T1[ten]; T2[ten]; T3[ten]; T4[ten]; T5[ten]; T6[ten]; T7[ten]; T8[ten]; T9[ten]; T10[ten]; D[guard];\nD->T1; D->T2; D->T3; D->T4; D->T5; D->T6; D->T7; D->T8; D->T9; D->T10;",
"X[ten]; D[guard]; D->X": "N1[one]; N2[one]; N3[one]; N4[one]; N5[one]; N6[one]; N7[one]; N8[one]; N9[one]; N10[one]; D[guard];\nD->N1; D->N2; D->N3; D->N4; D->N5; D->N6; D->N7; D->N8; D->N9; D->N10;",
"N; COUNT[one]; D[guard]; D->COUNT;": "N->NN; D[guard]",
"D[guard];": "E[color];",
"E[color]; N": [
"E[color]; N[style=filled; fillcolor=red; label=\"\"]",
"E[color]; N[style=filled; fillcolor=blue; label=\"\"]",
"E[color]; N[style=filled; fillcolor=green; label=\"\"]"
],
"version": "0.1",
"start": "C[hundred]; R; G[guard]; G->C"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment