MSDN > フォーラム ホーム > Microsoft SQL Server Modeling > M.exe always generates a Collection for a Record from an Mg grammar
質問する質問する
 

回答済みM.exe always generates a Collection for a Record from an Mg grammar

  • 2009年7月2日 15:17Ceyhun Ciper ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     コードあり
    ...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.

回答

すべての返信