public function parse($str, $md, $env, &$outTokens)
    {
        $state = new StateInline($str, $md, $env, $outTokens);

        $this->tokenize($state);

        $rules = $this->ruler2->getRules('');

        foreach ( $rules as &$rule) {
            if( is_array($rule) )
                $rule[0]->{$rule[1]}($state);
            else
                $rule($state);
        }
    }