The "M" Language Gallery is the place to find grammar and schema definitions implemented by both Microsoft and the community. Send us a link to an "M" language definition that you'd like to add to the set of Community Definitions.
A simple VB-like language for composing model-view-controller applications from existing models and controllers.
"M" is a simple declarative language for building domain models and working with data. "M" grammar is a language for describing the syntax rules and tokens of other domain-specific languages. Both languages are part of The "M" Modeling Language Specification. Also included are the base grammars built into the "M" compiler.
A text-based syntax for expressing simple melodies. This sample grammar also includes a small runtime to play back songs written in the language.
Grammar for the Windows Installer XML (Wix) Language. Wix is a free software toolset from Microsoft that builds Windows Installer (MSI) packages from an XML document.
"I decided to write an grammar for an existing language - XLANG (the language of orchestrations in BizTalk)."Jon Flanders
"I decided to create a simple DSL over the WatiN browser automation library."Torkel Ödegaard
"I used M to parse plain text stories and scenarios using the Behavior-Driven Development (BDD) language originally devised by my good friend Dan North."Claudio Perrone
"I thought a version of Turtle Graphics would be fun - and interesting for anyone else interested in experimenting with or learning M."Jason Hogg
"Over the past few weeks, I have been working on bdUnit, a side project to create a DSL that would transform user stories into C# unit tests."James Lynch
"I just spent an hour transforming the URI EBNF formal grammar into an Microsoft M grammar specifcation. The transformation is quite straight-forward."Bent Rasmussen
"I drafted Fowlers state-machine example with M." Lars Corneliussen
"I figured it might be a good exercise to write a DSL for dates using Mg and write a parser for the generated M value that can translate a limited subset of arbitrary natural language input to a valid date."Dilip Krishnan
"I've decided to come up with an M-based language for describing a BizTalk application to be deployed."Yossi Dahan
"I set out to write a domain specific language for calculus and analytic geometry, which I dubbed Calculatix"Jeff Ferguson
A creative domain-specific language for a home automation solution using the SQL Server Modeling CTP.Kris Horrocks
A simple Common Language Specification (CLS)-compliant, general purpose programming language for MetaSharp, a fully extensible, pipelined transformation engine that can be used for templated textual transformations (code generation), AST transformations and any combination thereof. Also includes a grammar for Template that accommodates free form text. See the Forum for a discussion of this subject.Justin Chase