got reentrant non-c++ scanner/parser working