def p_CREATETABLE2(t): '''CREATETABLE : create table id para LDEF parc HERENCIA ptcoma''' listaBNF.append("CREATETABLE ::= create table " + str(t[3]) + " para LDEF parc HERENCIA ptcoma") tabla: CreateTable = CreateTable(str(t[3]), t[5]) tabla.herencia = t[7] t[0] = tabla
def p_CREATETABLE1(t): '''CREATETABLE : create table id para LDEF parc ptcoma''' listaBNF.append("CREATETABLE ::= create table " + str(t[3]) + " para LDEF parc ptcoma") t[0] = CreateTable(str(t[3]), t[5])
def p_CREATETABLE1(t): '''CREATETABLE : create table id para LDEF parc ptcoma''' t[0] = CreateTable(str(t[3]), t[5])
def p_CREATETABLE2(t): '''CREATETABLE : create table id para LDEF parc HERENCIA ptcoma''' tabla: CreateTable = CreateTable(str(t[3]), t[5]) tabla.herencia = t[7] t[0] = tabla
def p_CREATETABLE2(t): '''CREATETABLE : create table id para LDEF parc HERENCIA ptcoma''' t[0] = CreateTable(str(t[3]), t[5], t[7])