Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Slides and code from my track B talk "Build Your Own Programming Language with JavaScript"

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 codegen.js
Octocat-spinner-32 example.mylang
Octocat-spinner-32 grammar.jison
Octocat-spinner-32 jsconf2010.pdf
Octocat-spinner-32 parser.js
README.md

"Build Your Own Programming Language with JavaScript" slides and code

  • example.mylang shows an example of the language we want to parse
  • grammar.jison is the grammar describing the parsing and AST building rules of the language
  • codegen.js is 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.pdf are the slides from the talk.
  • parser.js generated parser.

Use the Jison online generator to play with the language and generate parsers.

Something went wrong with that request. Please try again.