.NET Framework Bookmark and Share   
 index > Microsoft Codename 'Oslo' > Looking for MGraph API examples May CTP
 

Looking for MGraph API examples May CTP

Currently i've implemented a language in Oslo May CTP and this seems to work well. Now I want to implement an checker and interpreter to produce XHTML pages. I've looked at some samples, but the samples are outdated or don't use the API completely. I want to make use of some sort of Tree Walker to interpret items in the tree. Are there samples available which illustrates these kind of things? Another thing is that in some of the samples the grammar is compiled inside the program, but I just want touse an already compiledgrammar file to improve performance of the interpreter.
Captain007

I don't know of any additional samples that show everything you're looking for, exactly. For what it's worth, we're in the process of (finally) finalizing an update to the MGrammarXAML samples; I imagine that this is one of the "outdated" samples that you're referring to. If you want that sample sooner (because our internal tools are having some difficulties at the moment), drop my a line at kraigb (at) microsoft.com and I'll send them to you.

I'll ask internally here about using a compiled grammar instead of compiling that on the fly.

Others on the forum here are welcome, of course, to provide other pointers.

.Kraig

  • Marked As Answer byCaptain007 Monday, August 10, 2009 2:34 PM
  •  
Kraig Brockschmidt

I don't know of any additional samples that show everything you're looking for, exactly. For what it's worth, we're in the process of (finally) finalizing an update to the MGrammarXAML samples; I imagine that this is one of the "outdated" samples that you're referring to. If you want that sample sooner (because our internal tools are having some difficulties at the moment), drop my a line at kraigb (at) microsoft.com and I'll send them to you.

I'll ask internally here about using a compiled grammar instead of compiling that on the fly.

Others on the forum here are welcome, of course, to provide other pointers.

.Kraig

  • Marked As Answer byCaptain007 Monday, August 10, 2009 2:34 PM
  •  
Kraig Brockschmidt
One can try my "MGraph Library" @ http://sixpairs.com

I use it internally as a "helper" library for my DSLs; and it is my only point of entry to forthcoming changes in pending CTPs.

Please use it; what we all do is traverse the [Node]GraphBuilder nodes; what we actually need are thingslike node[326], node["condition"], node.GetValue("number"), node.Label & node.Value.

-Ceyhun

ps: There is some documentation, but I update it constantly, so check back for up-to-date docs.
pps: Can send some usage examples upon request.
Ceyhun Ciper

Nice library, but I can't use it. My implementation is a part of anmaster graduateresearch project where I'm benchmarking different implementation strategy's for implementing DSL's. To prevent bad influence inmeasurementsI will use the Oslo May CTP API's only. I already found some examples and I hope that in the future there will come a Tree Walker with Visitor Pattern or something like that.

Captain007

You can use google to search for other answers

Custom Search

More Threads

• Editor for custom textual DSL
• DSL for writting Rules
• Intellipad, May CTP, DSL Grammar mode and missing TreePreview
• Defaulting a DateTime field like Sql GetDate()
• My questions about "Oslo"
• Annotate the token with left(n) or right(n) ?
• Is there any example on how to use the completion service in IntelliPad?
• May 2009 CTP: Quadrant row insert does not work for types with constrained fields
• Building an AST in the presence of optional terms
• GraphBuilder internal inner types