Incremental parsing with bison and flex