MSDN Archive Home
Help and FAQs
"M" and "M" Languages Grammars
All Resource Updates
Change History (all pages)
Resource Page Description
In this sample, the file m.mg contains the full expression of the Microsoft code name "M" modeling language's grammar, essentially offering a distilled version of the "M" modeling language specification. Once compiled, it can be used to process an input text file written in "M" using the mgx.exe command-line utility. For details, see Using "M" Tools for Creating Languages in the MSDN Library (http://msdn.microsoft.com/en-us/library/dd857692(VS.85).aspx).
The file mg.mg contains the full expression of the "M languages portion of the "M" modeling language, essentially offering a distilled version of that part of the language specification. Once compiled, it can be used to process other grammars (.mg files) using the mgx.exe command-line utility. For general details on this process, also see the previous link.
The files Language.Base.mg and Language.Grammar.mg are also included in this sample. These are built directly into the "M" compiler and which define the basic tokens and rules for the "M" language. As such, these grammars are inherently included in all compilations of "M" code and all other processing of input text against custom grammars. They are provided here for reference purposes and need not be built or deployed independently, nor do they need to be referenced directly in other projects.
For complete details on all aspects of the "M" modeling language, refer to The "M" Modeling Language Specification at http://msdn.microsoft.com/en-us/library/dd285282.aspx.
**Delete the following note before publishing **
This resource page is currently in setup mode and only available to coordinators and developers. Once you have finished setting up your resource page you can publish it to make it available to all MSDN Code Gallery visitors.
To get your Resource Page ready to publish, you should do the following:
Make any changes to the details of your resource page
Here you can enable or disable functions of your resource page. You might want to turn on the Issue Tracker to allow users to provide feedback on your resource, or if you have a resource that does not involve a code sample, you may want to turn off the Releases tab.
Make sure your resource page description is detailed enough to let people search for your resource.
Add your code sample or other resources to the resource page
If you’re uploading code, go to the Releases tab and create a new release to house your code. Creating a release allows you to have the license properly displayed when people download your code, as well as provides a download count.
Edit your Wiki page to attach any resources you may have that are not source code.
If you want to let someone see your resource page before it is published, go to the People tab and add them to your resource page
This will let you add other team members who may be contributing to your resource, or just show it off and get feedback from someone you trust.
Tag your resource page with descriptive tags to make it easier for people to find your resources when browsing the gallery.
Publish your resource page so it becomes visible to everyone!
Additional information on starting a new resource page is available here:
Resource Page Startup Guide
Nov 4 2009 at 12:06 AM
, version 1
Sign in to add a comment
M Grammars (Nov 09 CTP)
Tue Nov 3 2009 at 8:00 AM
More Tags ...
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.