.NET Framework Developer Center > .NET Development Forums > Microsoft SQL Server Modeling > Developing MSchema along with MGrammar to have the AST validated
Ask a questionAsk a question
 

General DiscussionDeveloping MSchema along with MGrammar to have the AST validated

  • Wednesday, November 26, 2008 5:54 PMlcorneliussen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Intellipad MGrammar Mode with Tree Preview ist great! But I would like to define my semantic model along with my grammar and have the AST checked against it immediately.

    Any plans/thoughts? I'm sure I could write a python script for it, if I knew python an intellipad well enough :-)

All Replies

  • Wednesday, November 26, 2008 6:40 PMPaul VickMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I would say that in the long term, a goal of the language would be to enable that kind of validation. In the near term, though, this won't be supported.

    Paul


    Paul Vick MSFT
  • Thursday, November 27, 2008 2:36 PMlcorneliussen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    XSD without validation would be quite worthless, wouldn't it?

    Extent initializers (GraphExpressions) are already validated against schemas. Isn't this validation available throught an API?
  • Friday, December 12, 2008 10:45 PMPaul VickMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Sorry for the slow reply... There isn't really a technical challenge in that you are correct--we already validate graphs against schemas in the MSchema compiler. It's more of a question of getting the various pieces wired together, as well as getting the two languages wired together. We're headed there, we just aren't there yet.

    Paul
    Paul Vick MSFT