implemented lexical analyze of subset