home bbs files messages ]

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 931 of 2,753   
   Aaron Gray to parthaspanda2005@yahoo.com   
   Re: parsing ISO C++(1998/2003)   
   18 Apr 07 13:46:14   
   
   From: ang.usenet@gmail.com   
      
    wrote in message   
   >    No matter how many shots at it, I havent been   
   >    able to get bison/yacc to parse the C++ grammar   
   >    specified in the reference manual.   
   >   
   >    Factoring and other smart tricks leave the grammar   
   >    as much different from the original grammar   
   >    and no matter what, shift/reduce and reduce/reduce   
   >    conflicts run galore.   
      
   Its needs/is an ambigous grammar.   
      
   >    Is there any trick that I may be missing?   
      
   GLR (Bison has GLR) was ment to be the answer, although it is slow compared   
   to other techniques.   
      
   Elkhound and Elsa tried GLR approach and failed.   
      
   All the major C++ parsers are hand coded, recursive decent and precedance   
   based binary ops.   
      
   >    How do I get the grammar in the manual   
   >    not to change much as well as pass under   
   >    bison/yacc?   
      
   Thats probably impossible.   
      
   Aaron   
      
   --- 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