Skip to content

Instantly share code, notes, and snippets.

View vezwork's full-sized avatar
🥕

Elliot vezwork

🥕
View GitHub Profile
@vezwork
vezwork / recurseLispParser.js
Created August 8, 2023 15:31
An unfancy Lisp parser for the Recurse Center's pairing interview programming task
/**
* 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.
*