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,413 of 2,753    |
|    Walter Banks to Hans-Peter Diettrich    |
|    Re: Parsing partial sentences    |
|    27 Apr 17 10:58:41    |
      From: walter@bytecraft.com              On 2017-04-03 3:57 AM, Hans-Peter Diettrich wrote:       > Is there an easy way to parse e.g. C #defines into constants,       > functions or other non-terminals, which are not the goal of the       > entire grammar?              In a word NO. #defines are always strings even when they look like       constants, something I have found out the hard way. There have only been       two ways that I have successfully dealt with #defines: a preprocessor       pass or later and much faster pipeline the processing of C source and       add the defined definition processing into part of the source fetch       handling.              w..              --- 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