in reply to Re: RecDescent: binary shift in exe block?
in thread RecDescent: binary shift in exe block?

thanks for the suggestions. for the present, i have taken the approach of putting the divides and multiplies in the code -- but i'm not happy as it is no longer immediately clear what is going on, and i have had to fall back on the programmers' bane: comments. :-) i'm tired of seeing:
# # /4194304 -- that's right shift by 22 #
....and even more worried about what other surprises await this poor hack in programmer's clothing.

Replies are listed 'Best First'.
Re: Re: Re: RecDescent: binary shift in exe block?
by diotalevi (Canon) on May 13, 2003 at 03:36 UTC

    It gets worse - in pursuit of your problem I tried looking through P::RD source code and its almost comment-void. I was expecting to find the bits where it parses the grammar but it too much of a pain. 76K of source code and only a dozen lines of comment. Ick.

      ick indeed! my beastie is 3k lines and about 40% comments. (because when i come back i'll not remember why i did what i did.) thanks for the effort. i'll just leave the mults & divs & comments and move on to the other issues awaiting as i try to get a substantially useful tool out of this - that being what i need (the enlightenment was more a 'want' so i don't fall in any tiger traps.) thanks again! hwn