示例#1
0
文件: Parser.php 项目: jabouzi/projet
 function trigger(Scanner $scanner)
 {
     if ($scanner->token_type() != Scanner::WORD) {
         return false;
     }
     if (is_null($this->word)) {
         return true;
     }
     return $this->word == $scanner->token();
 }