protected void namespace_directive(
Module container
)
{
IToken t = null;
IToken id;
NamespaceDeclaration p = null;
try { // for error handling
t = LT(1);
match(NAMESPACE);
id=identifier();
if (0==inputState.guessing)
{
p = new NamespaceDeclaration(ToLexicalInfo(t));
p.Name = id.getText();
container.Namespace = p;
}
eos();
docstring(p);
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "namespace_directive");
recover(ex,tokenSet_12_);
}
else
{
throw ex;
}
}
}