<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Michael Wolbert's Blog &#187; Microsoft Oslo</title>
	<atom:link href="http://michaelwolbert.nl/blog/tag/microsoft-oslo/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaelwolbert.nl/blog</link>
	<description></description>
	<lastBuildDate>Thu, 06 May 2010 12:44:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Preparing for a trip to Seattle</title>
		<link>http://michaelwolbert.nl/blog/2009/06/preparing-for-a-trip-to-seattle/</link>
		<comments>http://michaelwolbert.nl/blog/2009/06/preparing-for-a-trip-to-seattle/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 10:37:16 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft Oslo]]></category>
		<category><![CDATA[Study]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Redmond]]></category>
		<category><![CDATA[SDR]]></category>
		<category><![CDATA[Seattle]]></category>
		<category><![CDATA[trip]]></category>

		<guid isPermaLink="false">http://michaelwolbert.nl/blog/?p=200</guid>
		<description><![CDATA[Hi there! My bachelor project is almost coming to an end: time to graduate! Friday the 26nd of June I have to defend my thesis at the Hogeschool Utrecht. In the meantime I&#8217;ll be heading to Seattle to attend an &#8220;Oslo&#8221; Software Design Review (SDR) from June 19th till 24th which I got invited to [...]]]></description>
			<content:encoded><![CDATA[<p>Hi there! My <a href="http://michaelwolbert.nl/blog/2009/01/been-a-while/" target="_self">bachelor project</a> is almost coming to an end: time to graduate! Friday the 26nd of June I have to defend my thesis at the Hogeschool Utrecht. In the meantime I&#8217;ll be heading to <a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=seattle&amp;sll=47.619891,-122.334523&amp;sspn=0,359.973435&amp;g=2301+8TH+AVENUE,+SEATTLE&amp;ie=UTF8&amp;ll=47.606163,-122.34375&amp;spn=24.861096,54.404297&amp;z=5&amp;iwloc=A" target="_self">Seattle</a> to attend an &#8220;Oslo&#8221; Software Design Review (SDR) from June 19th till 24th which I got invited to by Microsoft. At this event I&#8217;ll be discussing experiences I had during the development of a prototype for my bachelor project at <a href="http://avanade.com" target="_blank">Avanade</a>.</p>
<div class="wp-caption aligncenter" style="width: 346px"><img title="Seattle Skyline" src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/17/Seattle_skyline_night.jpg/800px-Seattle_skyline_night.jpg" alt="" width="336" height="249" /><p class="wp-caption-text">Seattle skyline</p></div>
<p style="text-align: center;">
<p>Next to this event I have some time off to go to <a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=olympic+national+park&amp;sll=37.579413,-95.712891&amp;sspn=57.196548,108.808594&amp;ie=UTF8&amp;ll=47.652438,-123.266602&amp;spn=1.550452,3.400269&amp;z=9" target="_self">Olympic National Park</a>; roam downtown Seattle and have a look on how the American Dream is lived. Or do you have to be asleep to believe it?</p>
<p style="text-align: left;"><em>The reason they call it the American Dream is because you have to be asleep to believe it.</em><br />
- <a href="http://www.youtube.com/watch?v=acLW1vFO-2Q" target="_blank">George Carlin</a></p>
<p>Hang around for photos! :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelwolbert.nl/blog/2009/06/preparing-for-a-trip-to-seattle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a Makefile to launch Oslo&#8217;s executables from Intellipad</title>
		<link>http://michaelwolbert.nl/blog/2009/03/using-a-makefile-to-launch-oslos-executables-from-intellipad/</link>
		<comments>http://michaelwolbert.nl/blog/2009/03/using-a-makefile-to-launch-oslos-executables-from-intellipad/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 15:30:17 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft Oslo]]></category>
		<category><![CDATA[Study]]></category>
		<category><![CDATA[Intellipad]]></category>
		<category><![CDATA[Makefile]]></category>
		<category><![CDATA[MGrammar]]></category>

		<guid isPermaLink="false">http://michaelwolbert.nl/blog/?p=178</guid>
		<description><![CDATA[In my previous post I mentioned Bryan Sumter&#8217;s GUI tool, which executes the right command from the configuration of the GUI. Sometimes I love my keyboard more than I love my mouse, so I decided to have a try on integrating the tool&#8217;s functionality into Intellipad using a Makefile to configure the commands. (Scroll down [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://michaelwolbert.nl/blog/2009/03/oslotool-a-gui-on-top-of-mexe-mxexe-mgexe-and-mgxexe/" target="_self">previous</a> post I mentioned Bryan Sumter&#8217;s GUI tool, which executes the right command from the configuration of the GUI. Sometimes I love my keyboard more than I love my mouse, so I decided to have a try on integrating the tool&#8217;s functionality into Intellipad using a Makefile to configure the commands. (Scroll down for download!)</p>
<p><strong>Developing:<br />
</strong>First of a snippet from the input Makefile:</p>
<pre>
<div class="codesnip-container" >######################################
# m builds
+m #executable
    @All #target
        files 	= m\*.m
	out	= bin\mx\Image.mx
	package = Image

    @AllToRepository
	files 	= m\*.m
	out	= bin\sql\ImageRep.sql
	target 	= Repository

    @AllToTsql
	files 	= m\*.m
	out	= bin\sql\ImageTsql.sql
	target	= Tsql10</div>
</pre>
<p>After specifying the input file, we continue..</p>
<ul>
<li><strong>Create MGrammar</strong> to parse Makefile to a graph.</li>
<li><strong>Compile MGrammar</strong> to Mgx or MgxResource to use in the runtime.</li>
<li><strong>Build a runtime</strong>: at first I wanted to build a runtime in Intellipads scriptengine (IronPython), but I encountered errors on DynamicParser.Parse(), which I couldn&#8217;t resolve. Since IronPython was no use for me at the moment, I used the .NET 3.5 Console Application (<em>mmake.exe &lt;executable&gt;.&lt;target&gt;</em>) to parse the graph and execute the build command with the proper parameters from the graph.</li>
<li><strong>Create a new Minibuffer command</strong> in IronPython which takes a <em>&lt;executable&gt;.&lt;target&gt;</em> as parameter (eg m.All). A new process will be created to call <em>mmake.exe m.All</em> and its stdout will be redirected to a new BufferView in Intellipad.</li>
</ul>
<p><strong>Python Magic</strong></p>
<p>FindHelper.py</p>
<pre>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="kw1">from</span> Microsoft.<span class="me1">Intellipad</span>.<span class="me1">Host</span> <span class="kw1">import</span> HostWindow
<span class="kw1">from</span> System.<span class="me1">Windows</span> <span class="kw1">import</span> MessageBox, MessageBoxButton, MessageBoxImage
<span class="kw1">from</span> System.<span class="me1">Diagnostics</span> <span class="kw1">import</span> Process, ProcessStartInfo
<span class="kw1">from</span> System.<span class="me1">IO</span> <span class="kw1">import</span> Directory, Path
...
<span class="kw1">def</span> BuildImpl<span class="br0">&#40;</span>activeView, target<span class="br0">&#41;</span>:
&nbsp; &nbsp; filePath = GetFriendlyFilePath<span class="br0">&#40;</span>activeView.<span class="me1">Buffer</span>.<span class="me1">Uri</span>.<span class="me1">AbsolutePath</span><span class="br0">&#41;</span> &nbsp; &nbsp;

&nbsp; &nbsp; <span class="kw1">if</span> filePath.<span class="me1">find</span><span class="br0">&#40;</span><span class="st0">&quot;Makefile&quot;</span><span class="br0">&#41;</span> &gt;= <span class="nu0">0</span>:
&nbsp; &nbsp; &nbsp; &nbsp; hostWindow = HostWindow.<span class="me1">GetHostWindowForBufferView</span><span class="br0">&#40;</span>activeView<span class="br0">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; buildBuffer = Common.<span class="me1">BufferManager</span>.<span class="me1">GetBuffer</span><span class="br0">&#40;</span>System.<span class="me1">Uri</span><span class="br0">&#40;</span><span class="st0">'transient://build'</span><span class="br0">&#41;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; Common.<span class="me1">Clear</span><span class="br0">&#40;</span>buildBuffer<span class="br0">&#41;</span>

&nbsp; &nbsp; &nbsp; &nbsp; view = Common.<span class="me1">GetView</span><span class="br0">&#40;</span>hostWindow, buildBuffer<span class="br0">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> view <span class="kw1">is</span> <span class="kw2">None</span>:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hostWindow.<span class="me1">ShowInRoot</span><span class="br0">&#40;</span>buildBuffer, <span class="nu0">40.0</span><span class="br0">&#41;</span>

&nbsp; &nbsp; &nbsp; &nbsp; fileDir = Path.<span class="me1">GetDirectoryName</span><span class="br0">&#40;</span>filePath<span class="br0">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#40;</span>exitCode, stdout, stderr<span class="br0">&#41;</span> = RunBuildCommand<span class="br0">&#40;</span><span class="st0">&quot;mmake&quot;</span>, fileDir, target<span class="br0">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; Common.<span class="me1">Write</span><span class="br0">&#40;</span>buildBuffer, stdout + <span class="st0">&quot;<span class="es0">\n</span>&quot;</span> + stderr<span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="kw1">else</span>:
&nbsp; &nbsp; &nbsp; &nbsp; message = <span class="st0">&quot;Error: Makefile needs to be in the active buffer.&quot;</span>
&nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span class="me1">Show</span><span class="br0">&#40;</span>message, IntellipadMessageBoxTitle , MessageBoxButton.<span class="me1">OK</span>,
&nbsp;MessageBoxImage.<span class="me1">Information</span><span class="br0">&#41;</span>

<span class="kw1">def</span> GetFriendlyFilePath<span class="br0">&#40;</span>fileUri<span class="br0">&#41;</span>:
&nbsp; &nbsp; path = <span class="kw2">str</span><span class="br0">&#40;</span>fileUri<span class="br0">&#41;</span>.<span class="me1">replace</span><span class="br0">&#40;</span><span class="st0">'%20'</span>, <span class="st0">' '</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="kw1">return</span> path.<span class="me1">replace</span><span class="br0">&#40;</span><span class="st0">'/'</span>, <span class="st0">'<span class="es0">\\</span>'</span><span class="br0">&#41;</span>

<span class="kw1">def</span> RunBuildCommand<span class="br0">&#40;</span><span class="kw3">cmd</span>, <span class="kw3">pwd</span>, args<span class="br0">&#41;</span>:
&nbsp; &nbsp; processStartInfo = ProcessStartInfo<span class="br0">&#40;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; processStartInfo.<span class="me1">WorkingDirectory</span> = <span class="kw3">pwd</span>
&nbsp; &nbsp; processStartInfo.<span class="me1">FileName</span> = <span class="kw3">cmd</span>
&nbsp; &nbsp; processStartInfo.<span class="me1">Arguments</span> = args
&nbsp; &nbsp; processStartInfo.<span class="me1">UseShellExecute</span> = <span class="kw2">False</span>
&nbsp; &nbsp; processStartInfo.<span class="me1">RedirectStandardOutput</span> = <span class="kw2">True</span>
&nbsp; &nbsp; processStartInfo.<span class="me1">RedirectStandardError</span> = <span class="kw2">True</span>

&nbsp; &nbsp; process = Process<span class="br0">&#40;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; process.<span class="me1">StartInfo</span> = processStartInfo
&nbsp; &nbsp; process.<span class="me1">Start</span><span class="br0">&#40;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; process.<span class="me1">WaitForExit</span><span class="br0">&#40;</span><span class="br0">&#41;</span>

&nbsp; &nbsp; stdout = process.<span class="me1">StandardOutput</span>.<span class="me1">ReadToEnd</span><span class="br0">&#40;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; stderr = process.<span class="kw2">StandardError</span>.<span class="me1">ReadToEnd</span><span class="br0">&#40;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="kw1">return</span> process.<span class="me1">ExitCode</span>, stdout, stderr</div>
</div>
</pre>
<p>MiniBufferCommandSetup.py</p>
<pre>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="kw1">def</span> Build<span class="br0">&#40;</span>target<span class="br0">&#41;</span>:
&nbsp; &nbsp; &nbsp; &nbsp; FindHelper.<span class="me1">BuildImpl</span><span class="br0">&#40;</span>MiniBufferHelper.<span class="me1">GetActiveView</span><span class="br0">&#40;</span><span class="br0">&#41;</span>, target<span class="br0">&#41;</span></div>
</div>
</pre>
<p><strong>Running the Makefile:<br />
</strong>When I use Intellipad to work on my grammars and models, I have the following directory setup:</p>
<p><a href="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/projectdir.jpg"><img class="size-medium wp-image-181 aligncenter" title="projectdir" src="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/projectdir-262x300.jpg" alt="" width="206" height="236" /></a></p>
<p>Now open up the Makefile in Intellipad:<br />
<span style="color: #ff0000;">Note: All paths specified in the Makefile are relative to the path of the Makefile.</span></p>
<p style="text-align: center;"><a href="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/makefilemanytomany.jpg"><img class="size-medium wp-image-182 aligncenter" title="makefilemanytomany" src="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/makefilemanytomany-300x167.jpg" alt="" width="329" height="182" /></a></p>
<p>Hit Ctrl+/ to bring up the Minibuffer and type: Build(&#8217;&lt;executable&gt;.&lt;target&gt;&#8217;)<br />
<span style="color: #ff0000;">Note: Intellipad needs to know what directory the Makefile is in, so the Makefile buffer should be active (selected) before bringing up the Minibuffer.</span></p>
<p style="text-align: center;"><a href="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/minibufferbuildcommand.jpg"><img class="size-medium wp-image-183 aligncenter" title="minibufferbuildcommand" src="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/minibufferbuildcommand-300x168.jpg" alt="" width="326" height="181" /></a></p>
<p>Command will run and output to a new BufferView:</p>
<p style="text-align: center;"><a href="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/commandexecuted.jpg"><img class="size-medium wp-image-185 aligncenter" title="commandexecuted" src="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/commandexecuted-300x168.jpg" alt="" width="330" height="184" /></a></p>
<p><strong><br />
Download:<br />
</strong></p>
<ul>
<li><a href="http://michaelwolbert.nl/projects/Oslo/mmake/project_sample.zip" target="_self">Sample project directory</a> (Makefile and samples from Oslo SDK 1.0 for sample builds).</li>
<li><a href="http://michaelwolbert.nl/projects/Oslo/mmake/mmake-0.1.zip" target="_self">mmake</a> (1 runtime, 1 mgx and 2 .py): <span style="color: #ff0000;">Extract archive in %PATH_TO_OSLO_SDK%\Bin</span></li>
</ul>
<p><span style="color: #ff0000;"><span style="color: #000000;"><strong>Install notes:<br />
</strong></span></span></p>
<ul>
<li><span style="color: #ff0000;">Add </span><span style="color: #ff0000;">%PATH_TO_OSLO_SDK%\Bin to system var: PATH</span></li>
<li>Backup .py files in case Intellipad stops working: FindHelper.py and MiniBufferCommandSetup.<br />
<span style="color: #000000;">%PATH_TO_OSLO_SDK%\</span>Bin\Intellipad\FindHelper.py<br />
<span style="color: #000000;">%PATH_TO_OSLO_SDK%\</span>Bin\Intellipad\Components\Microsoft.Intellipad.Scripting\PrivateScripts</li>
<li>Write permission errors on %PATH_TO_OSLO_SDK%: fix directory settings.</li>
</ul>
<p><strong>What&#8217;s next?</strong></p>
<ul>
<li>Hyperlinks on buildtargets in Intellipad: click to compile.</li>
<li>Resolving IronPython issues with DynamicParser.Parse().</li>
<li>Build a horizontal DSL instead of a vertical DSL for Makefiles.</li>
</ul>
<p><strong>Bugs and errors:<br />
</strong>Post bugs or suggestions in the comments or drop me a line via email. :-)</p>
<p><strong>References:</strong></p>
<ul>
<li><a href="http://blogs.msdn.com/Intellipad/" target="_self">http://blogs.msdn.com/Intellipad/</a></li>
<li><a href="http://www.ironpython.info/index.php/Contents" target="_self">http://www.ironpython.info/index.php/Contents</a></li>
<li><a href="http://www.sellsbrothers.com/news/showTopic.aspx?ixTopic=2256">http://www.sellsbrothers.com/news/showTopic.aspx?ixTopic=2256</a></li>
</ul>
<p><span style="color: #ff0000;"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://michaelwolbert.nl/blog/2009/03/using-a-makefile-to-launch-oslos-executables-from-intellipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OsloTool, a GUI on top of m.exe, mx.exe, mg.exe and mgx.exe</title>
		<link>http://michaelwolbert.nl/blog/2009/03/oslotool-a-gui-on-top-of-mexe-mxexe-mgexe-and-mgxexe/</link>
		<comments>http://michaelwolbert.nl/blog/2009/03/oslotool-a-gui-on-top-of-mexe-mxexe-mgexe-and-mgxexe/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 14:23:27 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft Oslo]]></category>
		<category><![CDATA[M]]></category>
		<category><![CDATA[MGrammar]]></category>
		<category><![CDATA[MSchema]]></category>

		<guid isPermaLink="false">http://michaelwolbert.nl/blog/?p=171</guid>
		<description><![CDATA[Bryan Sumter wrote a cool GUI to compile our grammars and models:


Dear readers,
I&#8217;ve been working on a small project called &#8220;OsloTool&#8221; and I thought it would be best to share this with the rest of the Oslo developers. It saved me a lot of time developing Oslo applications.
Basically it&#8217;s a Graphical User Interface on top [...]]]></description>
			<content:encoded><![CDATA[<p>Bryan Sumter wrote a cool GUI to compile our grammars and models:</p>
<p><a href="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/oslotool.jpg"><img class="alignnone size-full wp-image-172" title="OsloTool" src="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/oslotool.jpg" alt="" width="500" height="413" /></a></p>
<p><em><br />
Dear readers,</em></p>
<p><em>I&#8217;ve been working on a small project called &#8220;OsloTool&#8221; and I thought it would be best to share this with the rest of the Oslo developers. It saved me a lot of time developing Oslo applications.</em></p>
<p><em>Basically it&#8217;s a Graphical User Interface on top of the commandline tools: mg.exe, mgx.exe, m.exe and mx.exe. Untill Microsoft Implements build-options into IntelliPad u can use this (if you hate commandline as much as I do).</em></p>
<p><em>I&#8217;ll post the source as well, so you can modify and maybe even expand it.</em></p>
<p><em>Screenshot:<br />
http://img9.imageshack.us/img9/1353/oslotool.jpg</em></p>
<p><em>Download:<br />
http://michaelwolbert.nl/projects/Oslo/OsloTool.zip (thanks to my dear colleague and friend, Michael Wolbert)</em></p>
<p><em>Mirror:<br />
http://www.zshare.net/download/56614958a3fce0d5/</em></p>
<p><em>Note:<br />
In &#8220;Commands.cs&#8221; there is this line of code which specifies Oslo Directory:<br />
static string OsloDirectory = &#8220;C:/program files/microsoft oslo sdk 1.0&#8243;;</em></p>
<p><em>If you got any questions concerning OsloTool feel free to leave a message!</em></p>
<p><em>Greeting,<br />
Bryan Sumter<br />
</em></p>
<p><a href="http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/31856f60-1924-4c2c-836c-17664e1302e6">Oslo MSDN Community post</a></p>
<p>Grab the executable and source <a href="http://michaelwolbert.nl/projects/Oslo/OsloTool.zip">here</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelwolbert.nl/blog/2009/03/oslotool-a-gui-on-top-of-mexe-mxexe-mgexe-and-mgxexe/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>World&#8217;s most tiny blogparser written in MGrammar</title>
		<link>http://michaelwolbert.nl/blog/2009/03/worlds-most-tiny-blogparser-written-in-mgrammar/</link>
		<comments>http://michaelwolbert.nl/blog/2009/03/worlds-most-tiny-blogparser-written-in-mgrammar/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 16:50:16 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft Oslo]]></category>
		<category><![CDATA[Study]]></category>
		<category><![CDATA[Avanade]]></category>
		<category><![CDATA[DSL]]></category>
		<category><![CDATA[MGrammar]]></category>
		<category><![CDATA[Model Driven Software Development]]></category>

		<guid isPermaLink="false">http://michaelwolbert.nl/blog/?p=159</guid>
		<description><![CDATA[My first small parser I&#8217;ve written in MGrammar. Nothing fancy though..
I&#8217;ve defined the way I&#8217;d like to create my blogs, posts and blogrolls in a textual way:

Blog
    With Title OsloBlog
    Section Posts
        Post With Title MGrammar And Desc MGrammar
    [...]]]></description>
			<content:encoded><![CDATA[<p>My first small parser I&#8217;ve written in <a href="http://msdn.microsoft.com/en-us/library/dd129869.aspx" target="_self">MGrammar</a>. Nothing fancy though..</p>
<p>I&#8217;ve defined the way I&#8217;d like to create my blogs, posts and blogrolls in a textual way:</p>
<pre>
<div class="codesnip-container" >Blog
    With Title OsloBlog
    Section Posts
        Post With Title MGrammar And Desc MGrammar
        Post With Title Quadrant And Desc Quadrant
    End Section
    Section Blogroll
        Link With Title Oslo And Url http://microsoft.com
        Link With Title Michael And Url http://michaelwolbert.nl
    End Section
End Blog
Blog
    With Title MichaelBlog
    Section Posts
        Post With Title Avanade And Desc Ava
        Post With Title Testing123 And Desc Testing123456789
    End Section
End Blog</div>
</pre>
<p>With our grammar (parser) we can now create projections of our textual DSL:</p>
<pre>
<div class="codesnip-container" >Blog[
    Title[
      "MichaelBlog"
    ],
    Sections[
      Posts[
        Post[
          Title[
            "Avanade"
          ],
          Desc[
            "Ava"
          ]
        ],
        Post[
          Title[
            "Testing123"
          ],
          Desc[
            "Testing123456789"
          ]
        ]
      ]
    ]
  ]</div>
</pre>
<p>Next step would be to push this projections to Oslo&#8217;s repository (just a plain ol&#8217; SQL 2008 database), so a runtime can access it. We could also create a runtime which uses a set of classes to parse our textual DSL directly to the runtime. But that will be covered later on.</p>
<p>See this <a href="http://michaelwolbert.nl/blog/wp-content/uploads/2009/03/mgrammarblog.jpg" target="_self">Intellipad screenshot</a> for the textual DSL, the MGrammar and the projections (from L to R).</p>
<p>Some nice samples can be found in the <a href="http://msdn.microsoft.com/en-us/oslo/cc749619.aspx" target="_self">&#8220;M&#8221; Language Gallery</a>. Especially <a href="http://www.infoq.com/articles/natural-language-date-dsl-oslo">Natural Language Dates</a> has some good pointers to get started.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelwolbert.nl/blog/2009/03/worlds-most-tiny-blogparser-written-in-mgrammar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Been a while!</title>
		<link>http://michaelwolbert.nl/blog/2009/01/been-a-while/</link>
		<comments>http://michaelwolbert.nl/blog/2009/01/been-a-while/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 11:53:25 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Study]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Avanade]]></category>
		<category><![CDATA[Copenhagen]]></category>
		<category><![CDATA[graduate]]></category>
		<category><![CDATA[hitchhiking]]></category>
		<category><![CDATA[Innovasia]]></category>
		<category><![CDATA[Microsoft Oslo]]></category>
		<category><![CDATA[NYE]]></category>

		<guid isPermaLink="false">http://michaelwolbert.nl/blog/?p=149</guid>
		<description><![CDATA[I&#8217;m still alive and kicking! My last entry was on the 18th of november from Bangalore.. almost two months ago.. I just forgot about my entire blog: holiday, my love leaving for Australia, the fierce weather, study etc.
This week the Innovasia program will be finished with a symposium on our findings in India and on [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still alive and kicking! My last entry was on the 18th of november from Bangalore.. almost two months ago.. I just forgot about my entire blog: holiday, my love leaving for Australia, the fierce weather, study etc.</p>
<p>This week the <a href="http://innovasia.nl" target="_self">Innovasia</a> program will be finished with a symposium on our findings in India and on outsourcing in particulair. The new Innovasia website contains a lot of info on our visit to Bangalore for people who are interested or would like to follow the same program next year.</p>
<p>Besides Innovasia, I have been very busy preparing for my intern at <a href="http://avanade.com" target="_blank">Avanade</a> to graduate next semester. Avanade is a joint-venture between Accenture (80%) and Microsoft (20%). Its Dutch office is based in Almere: near Amsterdam. The topic of the project will be focused on model-driven software development using <a href="http://en.wikipedia.org/wiki/Domain-specific_language" target="_self">domain specific languages</a> (DSLs). This will be done in Microsoft&#8217;s newest platform called <a href="http://msdn.microsoft.com/en-gb/oslo/default.aspx" target="_self">Microsoft Oslo</a>. I&#8217;m very excited about learning these subjects, because it seems they have become very popular over the years. I&#8217;m completely new to this, at least it hasn&#8217;t been teached by my university. The start of this intern will be around the 1st of February. I&#8217;ll keep you posted!</p>
<p>The holiday was also quite good! :-) <a href="http://the-timing.nl" target="_self">Tijmen Ruizendaal</a> and I decided to <strong></strong>celebrate NYE somewhere different than our hometown Utrecht. Barcelona, Madrid, Rome, Pisa, Prague, Copenhagen, Berlin.. train, bus, plane.. we really didn&#8217;t know where and how to go. We probably waited way to long because flighttickets skyrocketed and traintickets became very scarce. Suddenly we had this thought of getting there without the need of paid transportation: hitchhiking! We decided to go to Copenhagen by the thumb, what a ride and what a stay! :-) I still have to grab some of the photos (not that much) of my camera and upload them to Flickr. Keep around, I&#8217;ll upload them soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelwolbert.nl/blog/2009/01/been-a-while/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

