Single file with the meson build system.
meson setup build
meson compile -C build
./build/src/plotter x^2
./build/src/plotter [equation] ?[o/no]
- [o/no] – outline / no outline – force outline algorithm, quality outline vs only zero values
- arrows – moves the viewport
- W – zoom in
- Z – zoom out
- r – reset viewport to origin
- q – quit
This was the result of getting nerd-sniped to write a parser in C. It later motivated my high school graduation project here, which used a Rust rewrite of this parser here.