Basic model for lexical analyzer