Skip to content

Commit

Permalink
Fix PHP parser (CRLF), update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Prokhorov committed Dec 27, 2012
1 parent 34b5633 commit c3a598b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
9 changes: 8 additions & 1 deletion README.md
Expand Up @@ -66,6 +66,12 @@ Competitors
* exp/html
http://tip.golang.org/pkg/exp/html

### PHP

* tidy + simplexml
http://php.net/manual/ru/book.tidy.php http://php.net/manual/ru/book.simplexml.php
Tidy - PHP extension for repearing broken HTML, simplexml - built-in libxml2 binding

### Haskell

* fast-tagsoup
Expand All @@ -78,7 +84,8 @@ Install OS dependencies python-virtualenv, erlang, pypy, C compiler and libxml2
dev packages

sudo apt-get install python-virtualenv python-lxml erlang-base pypy \
libxml2-dev libxslt1-dev build-essential nodejs npm cabal-install libicu-dev
libxml2-dev libxslt1-dev build-essential nodejs npm cabal-install libicu-dev \
php5-cli php5-tidy golang ruby1.9.1 ruby1.9.1-dev rubygems1.9.1

Then run (it will prepare virtual environments, fetch dependencies, compile sources etc)

Expand Down
8 changes: 4 additions & 4 deletions php-tidy/prepare.sh 100644 → 100755
@@ -1,4 +1,4 @@
#!/bin/bash

php -l -f ./tidy_simplexml.php

#!/bin/bash

php -l -f ./tidy_simplexml.php

16 changes: 8 additions & 8 deletions php-tidy/run.sh 100644 → 100755
@@ -1,8 +1,8 @@
#!/bin/bash
source ../lib.sh

test_file=$1
num_iterations=$2

print_header "php / tidy simplexml " $test_file
timeit php -f ./tidy_simplexml.php "$test_file" $num_iterations
#!/bin/bash
source ../lib.sh

test_file=$1
num_iterations=$2

print_header "tidy_simplexml.php" $test_file
timeit php -f ./tidy_simplexml.php "$test_file" $num_iterations

0 comments on commit c3a598b

Please sign in to comment.