example.mylangshows an example of the language we want to parsegrammar.jisonis the grammar describing the parsing and AST building rules of the languagecodegen.jsis the script that translate the AST into our target language. I forgot to emphasis that you don't have to generate JavaScript. Your target language could be whatever you desire.jsconf2010.pdfare the slides from the talk.parser.jsgenerated parser.
Use the Jison online generator to play with the language and generate parsers.