Parser

- Locates mis-parsed SUBSTITUTIONS in FILTER, and downgrades to PATTERN.
Parser

- Code cleanup.
Parser

- Code cleanup.