Hi Damien,
I assume by "evaluate" you mean normalise with respect to some rules.
There's no single command to issue the quantomatic core that will do
this, but it would be fairly easy to implement a little command line
utility to do it.
One quick and dirty way to do this in Poly/ML is to load the "heap"
that is produced by the quantomatic build process. For instance, if
you want to do this for red/green, start your code with something like
this:
PolyML.SaveState.loadState "quantomatic/core/heaps/quanto.heap";
PolyML.Compiler.printDepth:=100;
structure RG_IO = JsonObjectAnnotatedGraphicalTheoryIO(
structure Theory = RG_Theory
structure GraphComponentDataIO = RG_ComponentDataIO)
(custom code)
Then, have a look at the functions in RG_IO and RG_Theory for
loading/saving graphs and rules and applying rewrites, respectively.
> --
> You received this message because you are subscribed to the Google Groups
> "Quantomatic" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
quantomatic...@googlegroups.com.
> To post to this group, send email to
quant...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/quantomatic.
> For more options, visit
https://groups.google.com/d/optout.