Parsing frame implemented. Requires serious refactoring and revision. consumeIfMatch functionality is currently broken