.NET Framework Bookmark and Share   
 index > Microsoft Codename 'Oslo' > Parsing of Additive Operations on Signed Numbers
 

Parsing of Additive Operations on Signed Numbers

Can Oslo's MGrammar handle the parsing of Additive (and Subtraction) operations on signed numbers (Intergers and Real Numbers) ? Including Unary operations?

I am having trouble with othe operator precedence control.

Can you parse "-4 - -7.5**+2" correctly?

Does anyone have a sample of parsing full algebraic expressions with MGrammar?


THANKS.
DonBaechtel
Don,
One thing that may help is that M itself supports expressions. So, you can grab the MG for M and look at how it does so.

In the future, we hope to pull that part of M out as a separate library so anyone can reuse it.

-- pinky --/
-- pinky --/ http://www.tinyfinger.com/
  • Marked As Answer byDonBaechtel Thursday, January 29, 2009 7:18 PM
  •  
the Pinky
Don,
One thing that may help is that M itself supports expressions. So, you can grab the MG for M and look at how it does so.

In the future, we hope to pull that part of M out as a separate library so anyone can reuse it.

-- pinky --/
-- pinky --/ http://www.tinyfinger.com/
  • Marked As Answer byDonBaechtel Thursday, January 29, 2009 7:18 PM
  •  
the Pinky
Where can I find the Mg specification for the M language?

THANKS.
DonBaechtel

Hi Don,

I believe you will find it inthe Samples folder of the SDK install (e.g., C:\Program Files\Microsoft Oslo SDK 1.0\Samples\MGrammar\Languages). Look for M.mg.

--david

kearney
David,

I am using the May 2009 CTP and would LOVE to look at the M.mg file you described since I'm having the same issues as Don. The file seems to have been removed in the latest CTP. Is it on the web somewhere so I can get it or could someone email it?

Thanks
parker_g
see here

-Matthew

'blog: http://diakopter.blogspot.com/ JSMeta: http://jsmeta.org/
Matthew Wilson _diakopter_
Thank you Matthew!
parker_g

You can use google to search for other answers

Custom Search

More Threads

• Inconsistent list projection
• MGrammar for Behaviour-Driven Development
• May CTP feedback and questions
• Is there any way to define conditional rules in MGrammar?
• MGrammar as foundation for an HTML Parser
• How initialise record with "General" type field in "M"
• Inconsistent output of parsed DSL
• DSL = Domain Modeling Toolset
• Where is Repository.msi File ?
• "M" source for Microsoft.Samples.mx