.NET Framework Developer Center > .NET Development Forums > Microsoft SQL Server Modeling > M.exe always generates a Collection for a Record from an Mg grammar
Ask a questionAsk a question
 

AnswerM.exe always generates a Collection for a Record from an Mg grammar

  • Thursday, July 02, 2009 3:17 PMCeyhun Ciper Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    ...even though Intellipad correctly displays it as a record.

    Example:

    .mg:
    module M {
        language L {
            syntax Main = i:ident n:num => { i, n };
            token ident = a:any => ident{a};
            token num = a:any => num{a};
        }
    }
    Instance document: "a7"

    Intellipad output:

    {
      ident => "a",
      num => "7"
    }
    After compiling the .mg with m.exe the root node is a collection.

Answers

All Replies