This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Lisp Parser | |
* | |
* This JavaScript defines some unfancy parser combinators for Lisp values and Lisp arrays | |
* and composes them to define a Lisp parser. The Lisp values can be any sequence of characters | |
* as long as they aren't parens, space, or newline. | |
* | |
* I (Elliot) wrote this on Aug 8th for the Recurse Center's pairing interview programming task. | |
* Here's some types that hopefully help make the code easier to read and follow. | |
* |