Writing a JavaScript interpreter for DBN using PEG.js and canvas (Part I)

In this first part of the article, I will define a grammar for DBN (Design By Numbers) and generate a parser for it that outputs an AST (Abstract Syntax Tree), so I can interpret the syntax tree it later on with JavaScript and draw it into an HTML5 Canvas. John Maeda created the DBN language … Continue reading Writing a JavaScript interpreter for DBN using PEG.js and canvas (Part I)