MSDN > Home page del forum > Microsoft SQL Server Modeling > M.exe always generates a Collection for a Record from an Mg grammar
Formula una domandaFormula una domanda
 

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

  • giovedì 2 luglio 2009 15.17Ceyhun Ciper Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Contiene codice
    ...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.

Risposte

Tutte le risposte