Added flex based lexer

- not ready to be used yet as not added to Makefile yet
- reentrant so it could be used for parrallel lexing