Example #1
0
function __lambda_15($tokens)
{
    return preg_pattern(metascanner::make_regex($tokens[0], $tokens[1]), $tokens[2], $tokens[3], $tokens[4]);
}
Example #2
0
function generate_scanner_from_file($filename, $init_context)
{
    $metascanner = new metascanner();
    $metascanner->start(file_get_contents($filename));
    return scanner_parser()->parse('scanner', $metascanner)->scanner($init_context);
}