rvanvelzen / lime

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.
59 stars 9 forks source link

small bug on Windows + improvement #1

Open sethtrop4 opened 10 years ago

sethtrop4 commented 10 years ago

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