行を解析します。
@param Dictionary $dictionary
@param string|null ファイル終端ならnull。
@throws SyntaxException クイズ辞書で、コメント、問題、解答のいずれでもない行があれば
@return Word|null
355577
protected function parseLine(Dictionary $dictionary, string $line = null)
    {
        if (is_null($line)) {
            if ($this->type === 'Inteligenceω クイズ') {
                $output = $this->parseQuestionLine($dictionary, null);
            }
        } elseif ($line[0] !== '%') {
            // 空行でなければ
            if (is_null($this->type)) {
                // 辞書の種類が与えられてなければ
                $this->type = stripos($line, 'Q,') === 0 ? 'Inteligenceω クイズ' : 'Inteligenceω しりとり';
            }
            
            if ($this->type === 'Inteligenceω しりとり') {
                // しりとり辞書なら
                $output = $this->parseShiritoriLine($dictionary, $line);
            } elseif (stripos($line, 'Q,') === 0) {
                // 問題行なら
                $output = $this->parseQuestionLine($dictionary, $line);
            } elseif (stripos($line, 'A,') === 0) {
                // 解答行なら
                $this->parseAnswerLine($line);
            } else {
                throw new SyntaxException(_('壊れた行が含まれています:') . "\n" . $line);
            }
        }
        
        return $output ?? null;
    }
984677
private static function encodeDictionary($dictionary, &$serialized)
    {
        if (empty($dictionary)) {
            $serialized .= "de";
            return;
        }

        $serialized .= "d";
        foreach(self::sortDictionary($dictionary) as $key => $value) {
            self::encodeString($key, $serialized);
            self::decideEncode($value, $serialized);
        }
        $serialized .= "e";
    }
196113
public void listDict(PdfDictionary dictionary)
    {
        out.println("<<");
        PdfName key;
        PdfObject value;
        for (Iterator i = dictionary.getKeys().iterator(); i.hasNext(); ) {
            key = (PdfName) i.next();
            value = dictionary.get(key);
            out.print(key.toString());
            out.print(' ');
            listAnyObject(value);
        }
        out.println(">>");
    }
1311479
public void execRun(String command) throws IOException, PHPException {
	    writeCommand("R" + command);
	    phpConsoleLogger.write(command);
		String readLine = readLine();
        phpConsoleLogger.read(readLine);
		
	}
1316170
public static function logResult($word='') {
        $fp = fopen("log.txt","a");
        flock($fp, LOCK_EX) ;
        fwrite($fp,"执行日期：".strftime("%Y%m%d%H%M%S",time())."\n".$word."\n");
        flock($fp, LOCK_UN);
        fclose($fp);
    }
638140
public function getDictionary(
        string $name,
        string $sourceLanguage,
        string $targetLanguage,
        array $customData = []
    ): DictionaryInterface {
        $this->logger->debug('Memory: opening dictionary ' . $name);
        foreach ($this->dictionaries as $dictionaryName => $dictionary) {
            if ($dictionaryName === $name
                && $sourceLanguage === $dictionary->getSourceLanguage()
                && $targetLanguage === $dictionary->getTargetLanguage()
            ) {
                return $dictionary;
            }
        }

        throw new DictionaryNotFoundException($name, $sourceLanguage, $targetLanguage);
    }
739125
public function add_word($word)
    {
        $this->load_dict();

        foreach (explode(' ', $word) as $word) {
            // sanity check
            if (strlen($word) < 512) {
                $this->dict[] = $word;
                $valid = true;
            }
        }

        if ($valid) {
            $this->dict = array_unique($this->dict);
            $this->update_dict();
        }
    }
902911
private function decodeDict()
    {
        $dict = array();
        $terminated = false;
        $dictOffset = $this->offset;

        while (false !== $this->getChar()) {
            if ("e" == $this->getChar()) {
                $terminated = true;
                break;
            }

            $keyOffset = $this->offset;
            if (!ctype_digit($this->getChar())) {
                throw new RuntimeException("Invalid dictionary key at offset $keyOffset");
            }

            $key = $this->decodeString();
            if (isset ($dict[$key])) {
                throw new RuntimeException("Duplicate dictionary key at offset $keyOffset");
            }

            $dict[$key] = $this->doDecode();
        }

        if (!$terminated && false === $this->getChar()) {
            throw new RuntimeException("Unterminated dictionary definition at offset $dictOffset");
        }

        $this->offset++;

        return $dict;
    }
590764
public function hmset($key, ...$dictionary)
    {
        $this->init();
        if (is_array($dictionary[0])) {
            $result = $this->driver->hmset($key, ...$dictionary);
            return $this->transformResult($result);
        }
        $dictionary = $this->prepareKeyValue($dictionary, 'hmset');
        $result = $this->driver->hmset($key, $dictionary);
        return $this->transformResult($result);
    }
1367567
protected function msetExpire(array $dictionary, ?int $ttlSeconds): bool
    {
        if (empty($dictionary)) {
            return true;
        }

        if (!isset($ttlSeconds)) {
            return $this->execCommand('MSET', $dictionary);
        }

        $transaction = $this->predis->transaction();

        foreach ($dictionary as $key => $value) {
            $transaction->set($key, $value, 'EX', $ttlSeconds);
        }

        try {
            $responses = $transaction->execute();
        } catch (ServerException $e) {
            return false;
        }

        $ok = array_reduce($responses, function($ok, $response) {
            return $ok && $response instanceof Status && $response->getPayload() === 'OK';
        }, true);

        return $ok;
    }
80614
protected function parseAnswerLine(string $answer)
    {
        if (is_null($this->question)) {
            throw new SyntaxException(_('辞書は「Q,」で始めなければなりません。'));
        } elseif ($this->answers) {
            $this->answers .= ",$answer";
        } else {
            $this->answers = $answer;
        }
    }
1176178
public function zadd($key, ...$dictionary)
    {
        if (is_array(end($dictionary))) {
            foreach (array_pop($dictionary) as $member => $score) {
                $dictionary[] = $score;
                $dictionary[] = $member;
            }
        }

        $key = $this->applyPrefix($key);

        return $this->executeRaw(array_merge(['zadd', $key], $dictionary));
    }
100771
private function fillDictionaryWords() {
    foreach($this->dictionary as $w):
      $this->dictionaryWords[] = is_array($w) ? $w[0] : $w;
    endforeach;
  }
1328840
function yy_syntax_error($yymajor, $TOKEN)
    {
#line 4 "/var/www/coffeescript-php/grammar.y"
 
  throw new SyntaxError(
    'unexpected '.$this->tokenName($yymajor).' in '.self::$FILE.':'
  . (self::$LINE + 1).'.'
  );
#line 3153 "/var/www/coffeescript-php/grammar.php"
    }
916919
private function syntaxError(): void
    {
        throw new SyntaxErrorException(
            $this->lexer->getInputUntilPosition(PHP_INT_MAX),
            $this->lexer->lookahead['value'] ?: 'end of string',
            (int) $this->lexer->lookahead['position']
        );
    }
897330
protected static function parseMethodExec($data = null){
        self::$input =  AnnotationFun::replaceMethodStr(self::$body , AnnotationFun::createClosure(self::$body , self::$argv['methodName'], $data) , self::$input);
    }
1114669
protected function whereNullHandler($key, string $prefix = '', string $operator = ''): IQueryBuilderHandler
    {
        $key = $this->adapterInstance->wrapSanitizer($this->addTablePrefix($key));
        $prefix = ($prefix !== '') ? $prefix . ' ' : $prefix;

        return $this->{$operator . 'Where'}($this->raw("$key IS {$prefix}NULL"));
    }