2003-08-10 Miguel de Icaza <miguel@ximian.com>
authorMiguel de Icaza <miguel@gnome.org>
Sun, 10 Aug 2003 21:14:51 +0000 (21:14 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 10 Aug 2003 21:14:51 +0000 (21:14 -0000)
commit96748e7c9cc0f1690121a8c11d96c947458ddf14
treeebbabc69d314a0d11313e548a974f1480ca6434a
parentbce7bb0c283a55ea1c1ced7f1360375f025e8f9a
2003-08-10  Miguel de Icaza  <miguel@ximian.com>

* cs-parser.jay: FIRST_KEYWORD, LAST_KEYWORD: used to know if a
token was a keyword or not.

Add `error' options where an IDENTIFIER was expected;  Provide
CheckToken and CheckIdentifierToken convenience error reporting
functions.

Do not use `DeclSpace.Namespace', use `DeclSpace.NamespaceEntry'.

* decl.cs: Rename `NamespaceEntry Namespace' public field into
NameSpaceEntry NameSpaceEntry.

(LookupInterfaceOrClass): Avoid creating a full qualified name
from namespace and name: avoid doing lookups when we know the
namespace is non-existant.   Use new Tree.LookupByNamespace which
looks up DeclSpaces based on their namespace, name pair.

* driver.cs: Provide a new `parser verbose' to display the
exception thrown during parsing.  This is turned off by default
now, so the output of a failure from mcs is more graceful.

* namespace.cs: Track all the namespaces defined in a hashtable
for quick lookup.

(IsNamespace): New method

svn path=/trunk/mcs/; revision=17230
mcs/mcs/ChangeLog
mcs/mcs/cs-parser.jay
mcs/mcs/decl.cs
mcs/mcs/driver.cs
mcs/mcs/ecore.cs
mcs/mcs/namespace.cs
mcs/mcs/rootcontext.cs
mcs/mcs/symbolwriter.cs
mcs/mcs/tree.cs