#!/usr/bin/php
<?php
/**
 *
 */
 
error_reportingE_ALL E_STRICT );

$baseDir realpathdirname__FILE__ ) . '/..' );

define'PHPFIT_FIXTURE_DIR'$baseDir );

$incPath get_include_path() . ':' realpath$baseDir '/..' );
set_include_path$incPath );
     
include_once 
'../Parser.php';
include_once 
'../Table.php';


$files   = array();
//$files[] = $baseDir . '/data/music01.html';
//$files[] = $baseDir . '/data/music02.html';
$files[] = $baseDir '/data/arithmetic.html';
//$files[] = $baseDir . '/data/calculator.html';

$parser =   new PHPFIT_Parser();
$table  =   new PHPFIT_Table();

foreach( 
$files as $file ) {
    
$parser->parsefile_get_contents$file ) );

    echo 
"File:  $file \n";

    
$table->doTables$parser );

    echo 
"HTML\n-----------------------------------\n";
    echo 
$parser->serialize();
    echo 
"\n-----------------------------------\n";
}

?>