def p_enamldef_impl3(p):
    doc, body = p[9]
    enamldef = enaml_ast.EnamlDef(
        typename=p[2], base=p[4], identifier=p[7], docstring=doc, body=body,
        lineno=p.lineno(1)
    )
    _validate_enamldef(enamldef, p.lexer.lexer)
    p[0] = enamldef
enamldef_impl : ENAMLDEF NAME LPAR NAME RPAR COLON NAME COLON enamldef_suite
dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/p_enamldef_impl3