refactor($parse): only instantiate lex/parse once

Closes #4286