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 2,116 of 2,753   
   glen herrmannsfeldt to Steven G. Kargl   
   Re: LRSTAR 3.0: LALR(k) parser generator   
   12 Feb 12 06:29:16   
   
   From: gah@ugcs.caltech.edu   
      
   Steven G. Kargl  wrote:   
      
   > In file included from actions.cpp:4,   
   >                 from dfac.cpp:2:   
   > global.h:52:15: error: "or" cannot be used as a macro name as   
   > it is an operator in C++   
      
   In C, the preprocessor is logically before the compiler, so, as far as   
   I understand, there is no problem using any C reserved word as a macro   
   name, as long as you don't need the word.   
      
   I know C++ isn't C, but this one surprises me.   
      
   Still, if you aren't using the "or" operator, a quick pass through sed   
   should be able to fix it.   
      
   -- glen   
      
   --- 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