function parseTokenLogic(logic) {
            if (typeof logic.chain !== 'undefined') {
                chain = logic.chain;
            }

            if (typeof logic.context !== 'undefined') {
                state.context = logic.context;
            }

            if (typeof logic.output !== 'undefined') {
                output.push(logic.output);
            }
        }
Parse a set of tokens using the current state.

@param {Array} tokens The compiled tokens.
@param {Object} context The context to set the state to while parsing.
@param {Boolean} allowAsync Whether to parse asynchronously.
@param {Object} blocks Blocks that should override any defined while parsing.

@return {String} The rendered tokens.