Microsoft Developer Network > Domovská stránka fór > Microsoft SQL Server Modeling > M.exe always generates a Collection for a Record from an Mg grammar
Odeslat dotazOdeslat dotaz
 

OdpovědětM.exe always generates a Collection for a Record from an Mg grammar

  • 2. července 2009 15:17Ceyhun Ciper Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     Obsahuje kód
    ...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.

Odpovědi

Všechny reakce