TDOP, Top Down Operator Precedence Mini JavaScript Parser

Author

Forked from Douglas Crockford TDOP project. douglas@crockford.com

The lexical analyzer is modified to use regular expressions. Casiano Rodriguez Leon crguezl@ull.edu.es

Introduction

  • A full introduction is in the file tdop.html by Douglas Crockford. It contains a description of Vaughn Pratt's Top Down Operator Precedence, and describes a parser for Simplified JavaScript in Simplified JavaScript.

  • Deployment at GitHub pages. The app parses the input file and displays its AST.

  • The exercise is to understand and improve tokens.js. The tokens function produces an array with the tokens for a given input string.