lexBlock example

$this->positions = $matches;

        while ($this->cursor < $this->end) {
            // dispatch to the lexing functions depending             // on the current state             switch ($this->state) {
                case self::STATE_DATA:
                    $this->lexData();
                    break;

                case self::STATE_BLOCK:
                    $this->lexBlock();
                    break;

                case self::STATE_VAR:
                    $this->lexVar();
                    break;

                case self::STATE_STRING:
                    $this->lexString();
                    break;

                case self::STATE_INTERPOLATION:
                    
Home | Imprint | This part of the site doesn't use cookies.