Lime is a LALR(1) parser generator written in PHP. The original source code can be found at http://sourceforge.net/projects/lime-php/, this is just a fork.
in flex_scanner:__construct($path)
replace
$tokens = explode("\0", $scanner < "\$PHP_LIME_SCAN_STDIN");
by
$tokens = explode("\0", $scanner < $path);
so that it works on Windows
CAUTION : backquotes have been erased by Github
Other suggestion: it would be nice to store class voodoo_scanner in a separate php file, so that you don't have to modify the core file lime.php to adapt to your context
in flex_scanner:__construct($path) replace $tokens = explode("\0",
$scanner < "\$PHP_LIME_SCAN_STDIN"
); by $tokens = explode("\0",$scanner < $path
); so that it works on Windows CAUTION : backquotes have been erased by GithubOther suggestion: it would be nice to store class voodoo_scanner in a separate php file, so that you don't have to modify the core file lime.php to adapt to your context