Incremental parser with bison/flex