Language Parsing with
PEG.js
Based on the tutorial on
Nathan's University
http://pegjs.majda.cz
Turning raw text into
structured
data
Example
Creating a
parser
Options for parsing a language
Write your own function
Specify the grammar of your language and hand it over to a parser generator
PEG Langugae Parser
PEG - Simple example
Run
PEG.js Sequances
Run
PEG.js Parser Actions
Run
PEG.js More complex example
Example taken from Nathan's University
Run
Rouben Meschian
rmeschian@gmail.com