Draw a Spirograph in Logo using MGrammar and WPF

by Doug Finke on November 30, 2008

in MGrammar,Oslo,WPF

I ported The Hogg Blog post Creating a Logo / Turtle Graphics Textual DSL using Oslo MGrammar from .NET 4.0 to .NET 3.5 and approximated David Jung’s Logo script in the pared down syntax.

image

The .NET 4.0 version tweaks the MSBuild (csproj) so it compiles Logo.mg and embeds the mgx file on each run.

I’m trying to get that to work in the port. It is a significant time saver when working with .NET and MGrammars.

References

David Jung posted a Logo Spirograph script, which runs in Microsoft’s new Small Basic. Small Basic has support for Logo.

SmallBasicLogo2

Download .NET 3.5 Logo Textual DSL