.NET Framework Bookmark and Share   
 index > Microsoft Codename 'Oslo' > Some questions regarding MGrammar
 

Some questions regarding MGrammar

Is it possible to dinamically add productions/terminals to a grammar? The best example I can think of is a parser for a language like haskell that lets you define operators with associatovity and precedence level.
The second question: is it possible to put other values other than strings in the nodes of an MGraph.
Thanks.
[..]
Alex Muscar
Thanks for the questions.

(1) Augmenting the grammar in the middle of parsing is not supported in the PDC bits, but it is one of the scenarios being evaluated for V1.

(2) In the PDC bits, the only way to get non-string values into the generated MGraph is to write a custom graph builder and set it on the parser. However, enabling typed values to be produced into MGraphs is an important enough case that we are already looking into a mechanism/syntax for doing this.



  • Marked As Answer byAlex Muscar Thursday, December 04, 2008 6:21 PM
  •  
vbbala
Thanks for the questions.

(1) Augmenting the grammar in the middle of parsing is not supported in the PDC bits, but it is one of the scenarios being evaluated for V1.

(2) In the PDC bits, the only way to get non-string values into the generated MGraph is to write a custom graph builder and set it on the parser. However, enabling typed values to be produced into MGraphs is an important enough case that we are already looking into a mechanism/syntax for doing this.



  • Marked As Answer byAlex Muscar Thursday, December 04, 2008 6:21 PM
  •  
vbbala
Hi. That would ve very nice. And when might we see another release of Oslo with these features? :)
And another question: will there be an easier way to map mgraph to .net objects? The mgraphs are kind of general so the whole process is cumbersome at the moment.

[..]
Alex Muscar
dmmiller

You can use google to search for other answers

Custom Search

More Threads

• Getting rid of the extra { }
• May 2009 CTP: Quadrant breaks down when 'Id' is not used as identity column
• MGrammar as foundation for an HTML Parser
• Import "M" to Repository then view models in "Quadrant"
• New Oslo Refresh dated 3/2/2009 Does Not Install Models or Repository
• Modeling Project x Oslo
• Single source of truth?
• Compiled Grammar Sizes - Jan to May
• How to create a Schema/View and Folder in Oslo Repository from an ordenary .NET Assembly
• Getting started.