Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created December 17, 2013 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save einarwh/8013630 to your computer and use it in GitHub Desktop.
Save einarwh/8013630 to your computer and use it in GitHub Desktop.
Code to process CFG.
public void Process(ImmutableHashSet<EvalStack> set)
{
var x = set.Except(_I);
if (!x.IsEmpty)
{
_I = _I.Union(x);
_O = _I.Select(s => G(s)).ToImmutableHashSet();
foreach (var n in _targets)
{
n.Process(_O);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment