Menu

[r56]: / trunk / lang / python / lime / build.php  Maximize  Restore  History

Download this file

20 lines (15 with data), 574 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<?php
xdebug_disable();
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.lang');
echo ' - code generate size: '.strlen($code)."\n";
echo ' - save generated code'."\n";
$size = file_put_contents(__DIR__.'/../python.lang.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.