refactor($parse): don't make the lexer mark tokens as literals
refactor(parse): simplify the Parser's filter function
refactor($parse): remove unused parameters and methods

After removing the json and unwrapPromise mode, some parameters
and methods were no longer used.