I have tried to run my "Oslo" applications and samples in "Oslo" January 2009 SDK CTP. In this post, I want to share some changes I’ve observed.
Intellipad
- new icon :)
- menu M Mode: Semantic Graph position has been removed
- better validation (f.e file with only extents isn't valid)
- MScriptMode: keyword highlighting
Visual Studio
- "M" project: different sample implementation (without explicit extent definition)
- "M" project compilation: invocation of "M" compiler isn't shown
Repository
Some schemas have been renamed: f.e [Document] -> [System.Document], [Item] -> [Repository].[Item]
MGrammar
- .mgx image: DynamicParser (XAML) -> DynamicParserFactory (XAML)
- API changes: some methods or classes have been removed or replaced by others, f.e MGrammarCompiler -> LoadParserFromMgx, DynamicParser -> ParseObject, MGrammarCompiler -> GenerateM, TermGraphAdapter, ParserBase
- VS project: compiling to resource - <MgTarget>MgxResource</MgTarget>
- Parsing .NET application: loading parser from Mgx image - changes
static DynamicParser LoadLanguageFromAssembly(string lang)
{
var dp = DynamicParser.LoadFromResource("ParseNetMeeting", lang);
return dp;
}
static void Parse(string input)
{
DynamicParser language = LoadLanguageFromAssembly("NetCommunity.NM");
object result = language.Parse<object>(input, null, ErrorReporter.Standard);
IGraphBuilder graphBuilder = new GraphBuilder();
foreach (object meeting in graphBuilder.GetSuccessors(result))
{
//Walking MGraph
}
}
More advanced Microsoft samples don't compile f.e
MWindow,
Person,
Spork. I wait for new versions of them ....