Microsoft Developer Network > 포럼 홈 > 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일 목요일 오후 3: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.

답변

모든 응답