9fans archive / 2007 / 04 / 523 /    prev next

From: "Joel C. Salomon" <joelcsalomon@gma...>
Subject: [9fans] scopes in kencc
Date: Thu, 26 Apr 2007 21:12:36 -0400

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