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日 下午 03: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.

解答

所有回覆