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 862 of 2,753    |
|    Chris Dollin to Hans-Peter Diettrich    |
|    Re: Generating a simple hand-coded like     |
|    19 Dec 06 01:04:21    |
      From: chris.dollin@hp.com              Hans-Peter Diettrich wrote:              > As a solution for this problem in my LL(1.5) C parser, I leave the       > distinction to a stage between the lexer and parser, inside the       > preprocessor. Only in this stage "words" are mapped into keywords,       > typenames and other identifiers. The according "symbol" table is       > initialized with the C keywords, the preprocessor adds to it all       > #defined names, and the parser adds all encountered typedef       > names. This procedure works fine, provided that typedefs always have       > global scope, as is required in C.              Didn't we go round this a while ago? C typedefs can have non-global       scope.              --       Chris "HO. HO. HO." Dollin       [Oops, we did, didn't we. -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