Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 753 of 2,753    |
|    SLK Parsers to All    |
|    Re: Why LL(1) Parsers do not support lef    |
|    04 Aug 06 16:39:36    |
      From: parsersinc@earthlink.net              >Hmmm, how can you ever be sure, that the solution for the dangling else       >always will be correct, also in other ambiguous situations?              It is well-known to be correct, and is explained in compiler texts. It       is a very special case. In general, ambiguity is to be avoided unless       you know what you are doing, and probably even then. That said, I used       the technique seven times in a recent translator, and am confident       that it is correct. This was verified by use on about 1000 real       programs.              The SLK parser generator: http://home.earthlink.net/~slkpg/       [My rule of thumb has been that it's OK to use disambiguation for       if/then/else and operator precedence in expressions. Anywhere else       you're likely to get into trouble. -John]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca