A minimal Lisp interpreter written in Rust.
cargo build --releaseInteractive REPL:
cargo runExecute a file:
cargo run example.lispArithmetic: +, -, *, /, >, <, =
Logic: and, or, not
List Operations: map, fold, apply, split
File I/O: file-read
Type Conversion: as-number
Special Forms: define, if, function, quote
The included example.lisp solves Advent of Code 2022 Day 1.
- Go to adventofcode.com/2022/day/1 and copy your puzzle input
- Replace the contents of
example_input.txtwith your data - Run:
cargo run example.lispThe program outputs the answer to stdout.
Linux/Mac users: Change
"\r\n\r\n"to"\n\n"inexample.lispline 3 if your Advent of Code input uses Unix line endings.