Skip to content

Commit 3f72b28

Browse files
author
Edward Z. Yang ext:(%22)
committed
Add simple parse script for profiling purposes.
1 parent b95d51c commit 3f72b28

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/html5-parse.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
require_once dirname(__FILE__) . '/../library/HTML5/Parser.php';
3+
$argv = $_SERVER['argv'];
4+
if (!isset($argv[1])) {
5+
$file = 'php://stdin';
6+
} else {
7+
$file = $argv[1];
8+
}
9+
$result = HTML5_Parser::parse(file_get_contents($file));
10+
// nop

0 commit comments

Comments
 (0)