rules for lexic analysis