Menu

[r49]: / trunk / python / python.build.php  Maximize  Restore  History

Download this file

19 lines (14 with data), 545 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<?php
ini_set('display_errors',true);
error_reporting(E_ALL);
echo '<pre>'."\n";
echo ' - Start build python parser with lime'."\n";
echo ' - import lime library'."\n";
require_once __DIR__.'/../lime/lime.php';
echo ' - generating code'."\n";
$code = parse_lime_grammar(__DIR__.'/python.y');
echo ' - code generate size: '.strlen($code)."\n";
echo ' - save generated code'."\n";
$size = file_put_contents(__DIR__.'/python.parser.php',"<?php \n".$code."\n?>");
echo ' - parser size code: '.$size."\n";
echo '</pre>'."\n";
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.