Created
November 4, 2014 10:58
-
-
Save vonglasow/d8bafb4f4ce7749747c4 to your computer and use it in GitHub Desktop.
compiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sampler = new \Hoa\Compiler\Llk\Sampler\Coverage( | |
\Hoa\Compiler\Llk\Llk::load( | |
new \Hoa\File\Read($file->getPathName()) | |
), | |
new \Hoa\Regex\Visitor\Isotropic( | |
new \Hoa\Math\Sampler\Random() | |
) | |
); | |
$json = array(); | |
foreach ($sampler as $value) { | |
$json[] = json_decode($value, true); | |
} | |
file_put_contents($jsonDir . $jsonFile, json_encode($json)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment