https://thesharpowl.github.io//posts/HAND_WRITTEN_SCANNER_WITH_BISON_C_API/
Using Bison C API With Hand-written Scanner - TheSharpOwl