Ryan Rinaldi

.net development served with a slice of sarcasm
  • rss
  • About Me
  • Blog
  • Contact

PDC 2008: Building Textual DSLs with the "Oslo" Modeling Language

Ryan Rinaldi 10/30/2008 2:20:17 AM

(This is going to be cool. I'm totally geeked out about Oslo and I want me some Textual DSL goodness)

((Also, I have approx 51 mins of battery left so I might have to leave early.)

  • MGrammar is actually a DSL over MGraph the lowest level of M
  • We will be implmenting a grammar to parse: "Contact: giodl - 555-1212"
  • Inside of IntelliPad there will be 3 panes
    • Left is the input
    • Center is the Grammar
    • Right is Output
    • Errors are listed on the bottom
  • Module is the top level Container for MGrammar
    • Language is the top level structure "Think void main"
    • token == word
    • syntax == sentence
    • Range expressions is ".."
    • How to model whitespace?
      • Explicitly model wherever we want it
      • OR "interleave"
    • You can use single or double quotes
  • Step 1 in creating a DSL is tokenizing
  • Step 2 is parsing
  • Step 3 is shaping
  • FYI, this is mostly a demo based presentation so it's hard to make good notes.  Go watch this online. 
Comments
No Comments
Tags
blog

Leave a Comment

  • My Tweets

    • Looking at our options to move to TFS 2010 from 08 and change process template: just as painful to migrate off of TFS. sigh.
    • RT @Snywhip: I'm very proud of Spain and it's banning of the bull fights starting in 2012. Finally ;)
    • RT @adamtybor: @sergiopereira happy birthday!
    • Follow Me on Twitter
Powered by Graffiti CMS
  • Content © Ryan Rinaldi 2010
  • design by jide
  • Theme converted to GraffitiCMS by Adonis Bitar