'; $parser = new Parser(); $parser->yydebug = false; // Output Demo $parser->yyparse(new Lexer( 'yyparse( new Lexer(file_get_contents($file)), function($stmts) { }, function($msg) { echo $msg, "\n"; } ); $endTime = microtime(true); echo str_pad($file . ': ', 120, ' '), ($result == -1 ? 'successful' : 'ERROR'), ' (', $endTime - $startTime, ')', "\n"; flush(); }