Finally write EntityLexer.

:D

SLOC: 8769