From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7871fcf50704261812o6379c087xdfa8b74e6fa4adf2@mail.gmail.com> Date: Thu, 26 Apr 2007 21:12:36 -0400 From: "Joel C. Salomon" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: [9fans] scopes in kencc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Topicbox-Message-UUID: 5003b576-ead2-11e9-9d60-3106f5b1d025 I'm tracing through how the symbol table in kencc is maintained, and I'm not finding the part where scopes are maintained. E.g., when the compiler sees the declaration of *t in typdef int t; t foo; struct bar { int *t; }; where is it determined that LNAME is returned when *t is scanned rather than LTYPE (the way it is returned in the declaration of foo)? --Joel