Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Sergey Molodtsov
RE: Dice example or regexp engine error [ reply ]  
2007-07-02 12:54
Thank you for such a fast response.
Really I thought '+' => '' means '+100' is equal to '100' or vice versa :)

By: Mushfeq Khan
RE: Dice example or regexp engine error [ reply ]  
2007-06-30 22:18
Sergey,

Thanks for pointing that out. The bug is actually not in the regular expression engine, it's in the documentation. :)

That line should actually read: '+' => '\+', (and the source for this code is actually correct, see it at http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/website/src/dice_roller/dice_lexer_specification.rb?root=dhaka&view=markup), but for some reason my html generator is causing it to be munged.

I'll try to get it fixed as soon as possible, since it must be causing a lot of people a lot of confusion.

By the way, if you do the following you can get all the sources, for both the gem and the website:

svn checkout svn://rubyforge.org/var/svn/dhaka

Mushfeq.

By: Sergey Molodtsov
Dice example or regexp engine error [ reply ]  
2007-06-30 20:08
I have got an error caused by string '+' => '' in DiceLexerSpecification when I tried to compile lexer into Ruby.

IMO it's a bug of regexp engine. I suppose it does not eat empty strings, i.e. '', at all; I have not found "" element in regex_grammar file.