attempt to do a pure flex/bison reader