コード例 #1
0
ファイル: Parser.php プロジェクト: koesie10/LuaSerializer
 /**
  * @param string|null $char
  *
  * @throws ParseException
  */
 protected function skipPunctuation($char = null)
 {
     if ($this->isPunctuation($char)) {
         $this->input->next();
     } else {
         $this->input->error('Expecting punctuation: "' . $char . '"');
     }
 }
コード例 #2
0
 /**
  * @expectedException \Vlaswinkel\Lua\ParseException
  */
 public function testInvalidDoubleBracketCloseString()
 {
     $obj = new TokenStream(new InputStream('[==[ test ]== '));
     $obj->next();
 }