src/Behat/Gherkin/Parser.php
protected function parsePyString()
    {
        $token = $this->expectTokenType('PyStringOp');

        $line = $token['line'];

        $strings = array();
        while ('PyStringOp' !== ($predicted = $this->predictTokenType()) && 'Text' === $predicted) {
            $token = $this->expectTokenType('Text');

            $strings[] = $token['value'];
        }

        $this->expectTokenType('PyStringOp');

        return new PyStringNode($strings, $line);
    }
protected function parsePyString()
    {
        $token = $this->expectTokenType('PyStringOp');

        $line = $token['line'];

        $strings = array();
        while ('PyStringOp' !== ($predicted = $this->predictTokenType()) && 'Text' === $predicted) {
            $token = $this->expectTokenType('Text');

            $strings[] = $token['value'];
        }

        $this->expectTokenType('PyStringOp');

        return new PyStringNode($strings, $line);
    }
protected function parsePyString ( ) { $ token = $ this -> expectTokenType ( 'PyStringOp' ) ; $ line = $ token [ 'line' ] ; $ strings = array ( ) ; while ( 'PyStringOp' !== ( $ predicted = $ this -> predictTokenType ( ) ) && 'Text' === $ predicted ) { $ token = $ this -> expectTokenType ( 'Text' ) ; $ strings [ ] = $ token [ 'value' ] ; } $ this -> expectTokenType ( 'PyStringOp' ) ; return new PyStringNode ( $ strings , $ line ) ; }
Parses PyString token & returns it's node.

@return PyStringNode
Parses PyString token & returns it s node .