optimize dfa parser to identify const field