An MGrammar language is effectively a function from Unicode text to an arbitrary MGraph value.
Our runtime provides a fairly low-level mechanism for consuming (and constructing) MGraphs (IGraphBuilder), but it's a very wonky interface that is tuned for some pretty low-level usage (effectively for consumption by other runtime stacks).
Josh Williams (SpankyJ) and John Doty had built out an IGraphBuilder implementation that constructs XAML using some pretty straightforward rules. We couldn't get it into the PDC bits, but we were able to get it out as a sample.
See Spanky's blog entry on how to get it an use it.
Personally, this is the way I want to consume M values when I write C#.
This is even more true once we open up right-hand-sides of rules to more (hopefully all) of the M language.
Posted
Nov 12 2008, 11:51 PM
by
don-box