def p_namespace(self, p):
if p[<NUM_LIT:1>] == '<STR_LIT>':<EOL><INDENT>doc = None<EOL>if len(p) > <NUM_LIT:4>:<EOL><INDENT>doc = p[<NUM_LIT:5>]<EOL><DEDENT>p[<NUM_LIT:0>] = AstNamespace(<EOL>self.path, p.lineno(<NUM_LIT:1>), p.lexpos(<NUM_LIT:1>), p[<NUM_LIT:2>], doc)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>
namespace : KEYWORD ID NL
                     | KEYWORD ID NL INDENT docsection DEDENT