Scanner of typical compiler