<div dir="ltr"><div class="gmail_extra">On Tue, Jan 8, 2013 at 10:35 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_extra">Look at the grammar from the back of K&R. It requires TYPE tokens when you have definitions. However,</div>
<div class="gmail_extra">the lexer will produce an ID token unless you look it up in a table. So this is feedback from the 'typedef'</div>
<div class="gmail_extra">to the lexer.</div></blockquote><div><br></div><div style>You're referring to </div><div style><br></div><div style><a href="http://en.wikipedia.org/wiki/The_lexer_hack">http://en.wikipedia.org/wiki/The_lexer_hack</a><br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_extra"> So we at least need feedback to the lexer from the parse. I know we need feedback from cpp</div>
<div class="gmail_extra">to the lexer. I will think of it.</div></blockquote></div><br></div><div class="gmail_extra" style>No, CPP runs completely before anything else is done; there is no "feedback". This is also a debugging feature, e.g., you send a preprocessed source file when reporting a compiler bug so that the compiler devs don't have to reproduce your environment.</div>
</div>