public static function load($file)
{
if ($fp = fopen($file, 'r')) {
for ($code = ''; !feof($fp); $code .= fread($fp, 8192)) {
}
fclose($fp);
try {
$program = new self($code);
} catch (Lisphp_ParsingException $e) {
throw new Lisphp_ParsingException($e->code, $e->offset, $file);
}
return $program;
}
}