body_hash stringlengths 64 64 | body stringlengths 23 109k | docstring stringlengths 1 57k | path stringlengths 4 198 | name stringlengths 1 115 | repository_name stringlengths 7 111 | repository_stars float64 0 191k | lang stringclasses 1
value | body_without_docstring stringlengths 14 108k | unified stringlengths 45 133k |
|---|---|---|---|---|---|---|---|---|---|
30b5dfcf976a7da2a5d2563bc651d8ddc20d478452711cfea74d7084835a5619 | def plot_highest_risk(stations, N, dt):
'This function retrieves the N most at risk stations and then plots the relative water level from the last 10 days'
stations_to_plot = stations_highest_rel_level(stations, N)
for station in stations_to_plot:
(dates, levels) = fetch_measure_levels(station.measu... | This function retrieves the N most at risk stations and then plots the relative water level from the last 10 days | Task2E.py | plot_highest_risk | KaneZhao25/Flood_risk_project_83 | 0 | python | def plot_highest_risk(stations, N, dt):
stations_to_plot = stations_highest_rel_level(stations, N)
for station in stations_to_plot:
(dates, levels) = fetch_measure_levels(station.measure_id, dt=datetime.timedelta(days=dt))
plot_water_level(station, dates, levels)
return None | def plot_highest_risk(stations, N, dt):
stations_to_plot = stations_highest_rel_level(stations, N)
for station in stations_to_plot:
(dates, levels) = fetch_measure_levels(station.measure_id, dt=datetime.timedelta(days=dt))
plot_water_level(station, dates, levels)
return None<|docstring|... |
393c148e82fdf82f587037573adfe0dd205814512618708ae11283386c9f458e | def create_double_wall_box(box_dimensions):
'\n width, depth, height, thickness,\n fold_margin, wing_width\n\n returns ShapeArray\n '
width = box_dimensions['width']
height = box_dimensions['height']
depth = box_dimensions['depth']
thickness = box_dimensions['thickness']
fold_margin ... | width, depth, height, thickness,
fold_margin, wing_width
returns ShapeArray | box_led2.py | create_double_wall_box | AbdManian/PkgMaker | 0 | python | def create_double_wall_box(box_dimensions):
'\n width, depth, height, thickness,\n fold_margin, wing_width\n\n returns ShapeArray\n '
width = box_dimensions['width']
height = box_dimensions['height']
depth = box_dimensions['depth']
thickness = box_dimensions['thickness']
fold_margin ... | def create_double_wall_box(box_dimensions):
'\n width, depth, height, thickness,\n fold_margin, wing_width\n\n returns ShapeArray\n '
width = box_dimensions['width']
height = box_dimensions['height']
depth = box_dimensions['depth']
thickness = box_dimensions['thickness']
fold_margin ... |
1492da2ff169b011e91737d6e765356e5c93dc798909bfa94746f5c37d8a0bfe | def create_box_with_led(box_dimensions):
'\n width, height, depth, led_height,\n thickness, fold_margin, wing_width\n '
t = box_dimensions['thickness']
body_d = dict(box_dimensions)
led_d = dict(box_dimensions)
led_d['width'] = (body_d['width'] + (4 * t))
led_d['depth'] = (body_d['depth... | width, height, depth, led_height,
thickness, fold_margin, wing_width | box_led2.py | create_box_with_led | AbdManian/PkgMaker | 0 | python | def create_box_with_led(box_dimensions):
'\n width, height, depth, led_height,\n thickness, fold_margin, wing_width\n '
t = box_dimensions['thickness']
body_d = dict(box_dimensions)
led_d = dict(box_dimensions)
led_d['width'] = (body_d['width'] + (4 * t))
led_d['depth'] = (body_d['depth... | def create_box_with_led(box_dimensions):
'\n width, height, depth, led_height,\n thickness, fold_margin, wing_width\n '
t = box_dimensions['thickness']
body_d = dict(box_dimensions)
led_d = dict(box_dimensions)
led_d['width'] = (body_d['width'] + (4 * t))
led_d['depth'] = (body_d['depth... |
9d39549349d4218afceddf235ac2440a16f2021a8cd80a18b82c88028c7406c7 | def t_DIFERENTE(t):
'((<>)|(!=))'
t.type = reserved.get(t.value, 'DIFERENTE')
return t | ((<>)|(!=)) | parser/fase2/team03/grammarReview.py | t_DIFERENTE | JohnnyBro/tytus | 0 | python | def t_DIFERENTE(t):
t.type = reserved.get(t.value, 'DIFERENTE')
return t | def t_DIFERENTE(t):
t.type = reserved.get(t.value, 'DIFERENTE')
return t<|docstring|>((<>)|(!=))<|endoftext|> |
e253de7469c548f8f26eabb5c2985fb196511b8d8d6b46c2850823dd2b8aa263 | def t_FLOAT(t):
'((\\d+\\.\\d*)((e[\\+-]?\\d+)?)|(\\d*e[\\+-]?\\d+))'
t.value = float(t.value)
return t | ((\d+\.\d*)((e[\+-]?\d+)?)|(\d*e[\+-]?\d+)) | parser/fase2/team03/grammarReview.py | t_FLOAT | JohnnyBro/tytus | 0 | python | def t_FLOAT(t):
'((\\d+\\.\\d*)((e[\\+-]?\\d+)?)|(\\d*e[\\+-]?\\d+))'
t.value = float(t.value)
return t | def t_FLOAT(t):
'((\\d+\\.\\d*)((e[\\+-]?\\d+)?)|(\\d*e[\\+-]?\\d+))'
t.value = float(t.value)
return t<|docstring|>((\d+\.\d*)((e[\+-]?\d+)?)|(\d*e[\+-]?\d+))<|endoftext|> |
c90dd96ea4e8c0924762f48c0282d1fa56fa3d60146fea52f1144a63ae460518 | def t_ENTERO(t):
'\\d+'
t.value = int(float(t.value))
return t | \d+ | parser/fase2/team03/grammarReview.py | t_ENTERO | JohnnyBro/tytus | 0 | python | def t_ENTERO(t):
'\'
t.value = int(float(t.value))
return t | def t_ENTERO(t):
'\'
t.value = int(float(t.value))
return t<|docstring|>\d+<|endoftext|> |
b756302b0e9718b82718ba444ca6ed452b90cff1554f2f348e2276d9523c3a8e | def t_FECHA_HORA(t):
"\\'\\d{4}-[0-1]?\\d-[0-3]?\\d [0-2]\\d:[0-5]\\d:[0-5]\\d\\'"
t.value = t.value[1:(- 1)]
t.type = reserved.get(t.value, 'FECHA_HORA')
return t | \'\d{4}-[0-1]?\d-[0-3]?\d [0-2]\d:[0-5]\d:[0-5]\d\' | parser/fase2/team03/grammarReview.py | t_FECHA_HORA | JohnnyBro/tytus | 0 | python | def t_FECHA_HORA(t):
"\\'\\d{4}-[0-1]?\\d-[0-3]?\\d [0-2]\\d:[0-5]\\d:[0-5]\\d\\'"
t.value = t.value[1:(- 1)]
t.type = reserved.get(t.value, 'FECHA_HORA')
return t | def t_FECHA_HORA(t):
"\\'\\d{4}-[0-1]?\\d-[0-3]?\\d [0-2]\\d:[0-5]\\d:[0-5]\\d\\'"
t.value = t.value[1:(- 1)]
t.type = reserved.get(t.value, 'FECHA_HORA')
return t<|docstring|>\'\d{4}-[0-1]?\d-[0-3]?\d [0-2]\d:[0-5]\d:[0-5]\d\'<|endoftext|> |
af2bc11893b2ae35872755469e6eacf047bef5d5eeff6c630f075aa2e24d7dab | def t_PATTERN_LIKE(t):
"\\'\\%.*\\%\\'"
t.value = t.value[2:(- 2)]
t.type = reserved.get(t.value, 'PATTERN_LIKE')
return t | \'\%.*\%\' | parser/fase2/team03/grammarReview.py | t_PATTERN_LIKE | JohnnyBro/tytus | 0 | python | def t_PATTERN_LIKE(t):
"\\'\\%.*\\%\\'"
t.value = t.value[2:(- 2)]
t.type = reserved.get(t.value, 'PATTERN_LIKE')
return t | def t_PATTERN_LIKE(t):
"\\'\\%.*\\%\\'"
t.value = t.value[2:(- 2)]
t.type = reserved.get(t.value, 'PATTERN_LIKE')
return t<|docstring|>\'\%.*\%\'<|endoftext|> |
2d80142c70227020d6f265eb2e084d412df5e04172696c47d9f11ba258056022 | def t_TEXTO(t):
"\\'([^\\\\\\n]|(\\\\.))*?\\'"
t.value = t.value[1:(- 1)]
t.type = 'TEXTO'
return t | \'([^\\\n]|(\\.))*?\' | parser/fase2/team03/grammarReview.py | t_TEXTO | JohnnyBro/tytus | 0 | python | def t_TEXTO(t):
"\\'([^\\\\\\n]|(\\\\.))*?\\'"
t.value = t.value[1:(- 1)]
t.type = 'TEXTO'
return t | def t_TEXTO(t):
"\\'([^\\\\\\n]|(\\\\.))*?\\'"
t.value = t.value[1:(- 1)]
t.type = 'TEXTO'
return t<|docstring|>\'([^\\\n]|(\\.))*?\'<|endoftext|> |
a7b27f0b21fd1657a2277283df207f64f396e7f5eecac05a58eeca35f2161263 | def t_BOOLEAN_VALUE(t):
'((false)|(true))'
t.value = t.value.lower()
t.type = reserved.get(t.value, 'BOOLEAN_VALUE')
return t | ((false)|(true)) | parser/fase2/team03/grammarReview.py | t_BOOLEAN_VALUE | JohnnyBro/tytus | 0 | python | def t_BOOLEAN_VALUE(t):
t.value = t.value.lower()
t.type = reserved.get(t.value, 'BOOLEAN_VALUE')
return t | def t_BOOLEAN_VALUE(t):
t.value = t.value.lower()
t.type = reserved.get(t.value, 'BOOLEAN_VALUE')
return t<|docstring|>((false)|(true))<|endoftext|> |
33198e3c4e11db9fb6ff59eb60233ea78cd6bef2d255e2b4a973f2c42d180ea6 | def t_ID(t):
'[a-zA-Z_][a-zA-Z_0-9]*'
t.type = reserved.get(t.value.lower(), 'ID')
return t | [a-zA-Z_][a-zA-Z_0-9]* | parser/fase2/team03/grammarReview.py | t_ID | JohnnyBro/tytus | 0 | python | def t_ID(t):
t.type = reserved.get(t.value.lower(), 'ID')
return t | def t_ID(t):
t.type = reserved.get(t.value.lower(), 'ID')
return t<|docstring|>[a-zA-Z_][a-zA-Z_0-9]*<|endoftext|> |
8f26aedf59a6f3ee5a67a01a0e491b2ebe81b6555095cb8db011798c78736665 | def t_newline(t):
'\\n+'
t.lexer.lineno += t.value.count('\n') | \n+ | parser/fase2/team03/grammarReview.py | t_newline | JohnnyBro/tytus | 0 | python | def t_newline(t):
'\'
t.lexer.lineno += t.value.count('\n') | def t_newline(t):
'\'
t.lexer.lineno += t.value.count('\n')<|docstring|>\n+<|endoftext|> |
35f3401a7d4d50c0841bbc3bac95cc32f391de80361ad158ac2b9d64139e10e2 | def p_init(t):
' init : statements'
t[0] = t[1] | init : statements | parser/fase2/team03/grammarReview.py | p_init | JohnnyBro/tytus | 0 | python | def p_init(t):
' '
t[0] = t[1] | def p_init(t):
' '
t[0] = t[1]<|docstring|>init : statements<|endoftext|> |
f1deed90321bed387a06b911c0eb23136a998df5fcfb588fe342bfd0c9b40376 | def p_statements(t):
' statements : statements statement '
t[1].append(t[2])
t[0] = t[1] | statements : statements statement | parser/fase2/team03/grammarReview.py | p_statements | JohnnyBro/tytus | 0 | python | def p_statements(t):
' '
t[1].append(t[2])
t[0] = t[1] | def p_statements(t):
' '
t[1].append(t[2])
t[0] = t[1]<|docstring|>statements : statements statement<|endoftext|> |
3481fc5bace1d7e2106bb8011f084c264c7bd3d09f67816257e99c699322ea1e | def p_statements2(t):
' statements : statement '
t[0] = [t[1]] | statements : statement | parser/fase2/team03/grammarReview.py | p_statements2 | JohnnyBro/tytus | 0 | python | def p_statements2(t):
' '
t[0] = [t[1]] | def p_statements2(t):
' '
t[0] = [t[1]]<|docstring|>statements : statement<|endoftext|> |
d2b802ab2ccae925ea3e5f8b60bee00a371859902eecd33b29f3f8fc16eae116 | def p_statement(t):
'statement : stm_show PUNTOCOMA\n | stm_create PUNTOCOMA\n | stm_alter PUNTOCOMA\n | stm_use_db PUNTOCOMA\n | stm_select PUNTOCOMA\n | stm_insert PUNTOCOMA\n | stm_update PUNTO... | statement : stm_show PUNTOCOMA
| stm_create PUNTOCOMA
| stm_alter PUNTOCOMA
| stm_use_db PUNTOCOMA
| stm_select PUNTOCOMA
| stm_insert PUNTOCOMA
| stm_update PUNTOCOMA
| stm_delete PUNTOCOMA
| stm_drop PUNTOCOMA
| stm_select UNION all_opt stm_select PUNTOCOMA
| stm_select INTERSECT all_opt stm_select PUNTOCOMA
... | parser/fase2/team03/grammarReview.py | p_statement | JohnnyBro/tytus | 0 | python | def p_statement(t):
'statement : stm_show PUNTOCOMA\n | stm_create PUNTOCOMA\n | stm_alter PUNTOCOMA\n | stm_use_db PUNTOCOMA\n | stm_select PUNTOCOMA\n | stm_insert PUNTOCOMA\n | stm_update PUNTO... | def p_statement(t):
'statement : stm_show PUNTOCOMA\n | stm_create PUNTOCOMA\n | stm_alter PUNTOCOMA\n | stm_use_db PUNTOCOMA\n | stm_select PUNTOCOMA\n | stm_insert PUNTOCOMA\n | stm_update PUNTO... |
0d90a8d5aa540e67b15d7e8bc0f8f5615288e75e95995507a2e90634596b20a4 | def p_statement_error(t):
'statement : error PUNTOCOMA\n '
token = t.slice[1]
t[0] = Error(token.lineno, token.lexpos, ErrorType.SYNTAX, ('Ilegal token ' + str(token.lineno))) | statement : error PUNTOCOMA | parser/fase2/team03/grammarReview.py | p_statement_error | JohnnyBro/tytus | 0 | python | def p_statement_error(t):
'\n '
token = t.slice[1]
t[0] = Error(token.lineno, token.lexpos, ErrorType.SYNTAX, ('Ilegal token ' + str(token.lineno))) | def p_statement_error(t):
'\n '
token = t.slice[1]
t[0] = Error(token.lineno, token.lexpos, ErrorType.SYNTAX, ('Ilegal token ' + str(token.lineno)))<|docstring|>statement : error PUNTOCOMA<|endoftext|> |
4fa117e67d26ca02213ec2092c096eb41ee7365aa14fb2e172466f6bf595f031 | def p_asig_basica(t):
'asig_basica : ID DOSPUNTOS IGUAL expression\n | ID IGUAL expression '
if (len(t) == 5):
childsProduction = addNotNoneChild(t, [4])
graph_ref = graph_node(str('asig_basica'), [t[1], t[2], t[3], t[4]], childsProduction)
addCad("**\\<ASIG_B... | asig_basica : ID DOSPUNTOS IGUAL expression
| ID IGUAL expression | parser/fase2/team03/grammarReview.py | p_asig_basica | JohnnyBro/tytus | 0 | python | def p_asig_basica(t):
'asig_basica : ID DOSPUNTOS IGUAL expression\n | ID IGUAL expression '
if (len(t) == 5):
childsProduction = addNotNoneChild(t, [4])
graph_ref = graph_node(str('asig_basica'), [t[1], t[2], t[3], t[4]], childsProduction)
addCad("**\\<ASIG_B... | def p_asig_basica(t):
'asig_basica : ID DOSPUNTOS IGUAL expression\n | ID IGUAL expression '
if (len(t) == 5):
childsProduction = addNotNoneChild(t, [4])
graph_ref = graph_node(str('asig_basica'), [t[1], t[2], t[3], t[4]], childsProduction)
addCad("**\\<ASIG_B... |
be13e06f427b047d0f623b006c55370c785bdde738a58ef12888fe1850ec442d | def p_stm_perform(t):
'stm_perform : PERFORM ID PARA TEXTO COMA ID PARC '
if (len(t) == 8):
graph_ref = graph_node(str('stm_perform'), [t[1], t[2], t[3], t[4], t[5], t[6], t[7]], [])
addCad("**\\<STM_PERFORM>** ::= tPerform tIdentifier PARA tTexto ',' tIdentifier PARC ';' ")
t[0... | stm_perform : PERFORM ID PARA TEXTO COMA ID PARC | parser/fase2/team03/grammarReview.py | p_stm_perform | JohnnyBro/tytus | 0 | python | def p_stm_perform(t):
' '
if (len(t) == 8):
graph_ref = graph_node(str('stm_perform'), [t[1], t[2], t[3], t[4], t[5], t[6], t[7]], [])
addCad("**\\<STM_PERFORM>** ::= tPerform tIdentifier PARA tTexto ',' tIdentifier PARC ';' ")
t[0] = upNodo('token', 0, 0, graph_ref)
else:
... | def p_stm_perform(t):
' '
if (len(t) == 8):
graph_ref = graph_node(str('stm_perform'), [t[1], t[2], t[3], t[4], t[5], t[6], t[7]], [])
addCad("**\\<STM_PERFORM>** ::= tPerform tIdentifier PARA tTexto ',' tIdentifier PARC ';' ")
t[0] = upNodo('token', 0, 0, graph_ref)
else:
... |
1e208619c3e70f524a5a8f8dae0183e4f0409ba3ce40c9d25018968dac5d075d | def p_stm_if(t):
'stm_if : IF condition THEN if_inst elseif_opt else_opt END IF '
graph_ref = None
t[0] = IfNode(t[2], t[4], t[5], t[6], t.slice[1].lineno, t.slice[1].lexpos, graph_ref) | stm_if : IF condition THEN if_inst elseif_opt else_opt END IF | parser/fase2/team03/grammarReview.py | p_stm_if | JohnnyBro/tytus | 0 | python | def p_stm_if(t):
' '
graph_ref = None
t[0] = IfNode(t[2], t[4], t[5], t[6], t.slice[1].lineno, t.slice[1].lexpos, graph_ref) | def p_stm_if(t):
' '
graph_ref = None
t[0] = IfNode(t[2], t[4], t[5], t[6], t.slice[1].lineno, t.slice[1].lexpos, graph_ref)<|docstring|>stm_if : IF condition THEN if_inst elseif_opt else_opt END IF<|endoftext|> |
6fe7f7b33d8c4b7739406cfe9e946a6e85fd4e0c8b5b2ab3f1f0270d96e79a08 | def p_condition(t):
'condition : NOT FOUND\n | predicateExpression \n '
if (len(t) == 3):
graph_ref = graph_node(str('condition'), [t[1], t[2]], [])
addCad('**\\<CONDITION>** ::= tNot tFound ')
t[0] = upNodo('token', 0, 0,... | condition : NOT FOUND
| predicateExpression | parser/fase2/team03/grammarReview.py | p_condition | JohnnyBro/tytus | 0 | python | def p_condition(t):
'condition : NOT FOUND\n | predicateExpression \n '
if (len(t) == 3):
graph_ref = graph_node(str('condition'), [t[1], t[2]], [])
addCad('**\\<CONDITION>** ::= tNot tFound ')
t[0] = upNodo('token', 0, 0,... | def p_condition(t):
'condition : NOT FOUND\n | predicateExpression \n '
if (len(t) == 3):
graph_ref = graph_node(str('condition'), [t[1], t[2]], [])
addCad('**\\<CONDITION>** ::= tNot tFound ')
t[0] = upNodo('token', 0, 0,... |
e551387300b92a6beaf74070e47ecb09c1d2c537d526ff68448efe3447351b7f | def p_elseif_opt(t):
'elseif_opt : ELSEIF condition THEN if_inst '
if (len(t) == 5):
graph_ref = None
t[0] = IfNode(t[2], t[4], None, None, t.slice[1].lineno, t.slice[1].lexpos, graph_ref) | elseif_opt : ELSEIF condition THEN if_inst | parser/fase2/team03/grammarReview.py | p_elseif_opt | JohnnyBro/tytus | 0 | python | def p_elseif_opt(t):
' '
if (len(t) == 5):
graph_ref = None
t[0] = IfNode(t[2], t[4], None, None, t.slice[1].lineno, t.slice[1].lexpos, graph_ref) | def p_elseif_opt(t):
' '
if (len(t) == 5):
graph_ref = None
t[0] = IfNode(t[2], t[4], None, None, t.slice[1].lineno, t.slice[1].lexpos, graph_ref)<|docstring|>elseif_opt : ELSEIF condition THEN if_inst<|endoftext|> |
57f150aae2058cb6c1f9fdac6ceee096e50ff4e4d700e99a8432abaf5acb9432 | def p_elseif_opt0(t):
'elseif_opt : empty '
t[0] = None | elseif_opt : empty | parser/fase2/team03/grammarReview.py | p_elseif_opt0 | JohnnyBro/tytus | 0 | python | def p_elseif_opt0(t):
' '
t[0] = None | def p_elseif_opt0(t):
' '
t[0] = None<|docstring|>elseif_opt : empty<|endoftext|> |
b5ce1af9bd5aadc31230d499d82da12058d432941ba702d0a0f437ebc225ab7b | def p_else_opt(t):
'else_opt : ELSE if_inst '
if (len(t) == 3):
lista = None
childsProduction = []
if (t[2] != None):
lista = t[2][0]
childsProduction.append(lista.graph_ref)
graph_ref = graph_node(str('else_opt'), [t[1], lista], childsProduction)
... | else_opt : ELSE if_inst | parser/fase2/team03/grammarReview.py | p_else_opt | JohnnyBro/tytus | 0 | python | def p_else_opt(t):
' '
if (len(t) == 3):
lista = None
childsProduction = []
if (t[2] != None):
lista = t[2][0]
childsProduction.append(lista.graph_ref)
graph_ref = graph_node(str('else_opt'), [t[1], lista], childsProduction)
addCad('**\\<ELSEIF_O... | def p_else_opt(t):
' '
if (len(t) == 3):
lista = None
childsProduction = []
if (t[2] != None):
lista = t[2][0]
childsProduction.append(lista.graph_ref)
graph_ref = graph_node(str('else_opt'), [t[1], lista], childsProduction)
addCad('**\\<ELSEIF_O... |
b587abdeaebc6aa01a9f45ae7c3818adec91309a7e4857b4fd71fd043e8fe299 | def p_else_opt0(t):
'else_opt : empty '
t[0] = None | else_opt : empty | parser/fase2/team03/grammarReview.py | p_else_opt0 | JohnnyBro/tytus | 0 | python | def p_else_opt0(t):
' '
t[0] = None | def p_else_opt0(t):
' '
t[0] = None<|docstring|>else_opt : empty<|endoftext|> |
df19959bbec78d4a4a1d494184692e7d8f563c4ea260b519edb73fcd20bd53be | def p_if_inst(t):
'if_inst : if_inst statements_sql PUNTOCOMA\n | if_inst raise_op\n | if_inst asig_basica PUNTOCOMA\n '
token = t.slice[2]
if (token.type == 'statements_sql'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref =... | if_inst : if_inst statements_sql PUNTOCOMA
| if_inst raise_op
| if_inst asig_basica PUNTOCOMA | parser/fase2/team03/grammarReview.py | p_if_inst | JohnnyBro/tytus | 0 | python | def p_if_inst(t):
'if_inst : if_inst statements_sql PUNTOCOMA\n | if_inst raise_op\n | if_inst asig_basica PUNTOCOMA\n '
token = t.slice[2]
if (token.type == 'statements_sql'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref =... | def p_if_inst(t):
'if_inst : if_inst statements_sql PUNTOCOMA\n | if_inst raise_op\n | if_inst asig_basica PUNTOCOMA\n '
token = t.slice[2]
if (token.type == 'statements_sql'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref =... |
78ef684e8f832fbf9de92c81060792668ae88940db1c46320a26e72ca7054988 | def p_if_inst0(t):
'if_inst : empty '
t[0] = None | if_inst : empty | parser/fase2/team03/grammarReview.py | p_if_inst0 | JohnnyBro/tytus | 0 | python | def p_if_inst0(t):
' '
t[0] = None | def p_if_inst0(t):
' '
t[0] = None<|docstring|>if_inst : empty<|endoftext|> |
e651bd2354b0089d6d7a61ebde7d7488e271ed34ce0d6f606e1e16b8b590ff49 | def p_stm_begin(t):
'stm_begin : declares_opt BEGIN statements_begin exception_opt return_opt END if_opt '
childsProduction = addNotNoneChild(t, [1, 3, 4, 5, 7])
graph_ref = graph_node(str('stm_if'), [t[1], t[2], t[3], t[4], t[5], t[6], t[7]], childsProduction)
addCad('**\\<STM_BEGIN>** ::= [\... | stm_begin : declares_opt BEGIN statements_begin exception_opt return_opt END if_opt | parser/fase2/team03/grammarReview.py | p_stm_begin | JohnnyBro/tytus | 0 | python | def p_stm_begin(t):
' '
childsProduction = addNotNoneChild(t, [1, 3, 4, 5, 7])
graph_ref = graph_node(str('stm_if'), [t[1], t[2], t[3], t[4], t[5], t[6], t[7]], childsProduction)
addCad('**\\<STM_BEGIN>** ::= [\\<DECLARE_OPT>] tIf \\<CONDITION> THEN [\\<IF_INST>] [\\<ELSEIF_OPT>] [\\<ELSE_OPT>... | def p_stm_begin(t):
' '
childsProduction = addNotNoneChild(t, [1, 3, 4, 5, 7])
graph_ref = graph_node(str('stm_if'), [t[1], t[2], t[3], t[4], t[5], t[6], t[7]], childsProduction)
addCad('**\\<STM_BEGIN>** ::= [\\<DECLARE_OPT>] tIf \\<CONDITION> THEN [\\<IF_INST>] [\\<ELSEIF_OPT>] [\\<ELSE_OPT>... |
0cf6b8483cacbd929751d477f5ed7958c8fb63b539dd52987d7e8974bc9e55c7 | def p_statements_begin(t):
'statements_begin : statements_begin statements_sql PUNTOCOMA\n | statements_begin stm_if PUNTOCOMA\n | statements_begin asig_basica PUNTOCOMA\n | statements_begin stm_case PUNTOCOMA '
token = t.sli... | statements_begin : statements_begin statements_sql PUNTOCOMA
| statements_begin stm_if PUNTOCOMA
| statements_begin asig_basica PUNTOCOMA
| statements_begin stm_case PUNTOCOMA | parser/fase2/team03/grammarReview.py | p_statements_begin | JohnnyBro/tytus | 0 | python | def p_statements_begin(t):
'statements_begin : statements_begin statements_sql PUNTOCOMA\n | statements_begin stm_if PUNTOCOMA\n | statements_begin asig_basica PUNTOCOMA\n | statements_begin stm_case PUNTOCOMA '
token = t.sli... | def p_statements_begin(t):
'statements_begin : statements_begin statements_sql PUNTOCOMA\n | statements_begin stm_if PUNTOCOMA\n | statements_begin asig_basica PUNTOCOMA\n | statements_begin stm_case PUNTOCOMA '
token = t.sli... |
1f70ce1b129c6bd450c50298cff47e9c13912470dbd5e43914032fa305fe0a27 | def p_statements_begin0(t):
'statements_begin : empty '
t[0] = None | statements_begin : empty | parser/fase2/team03/grammarReview.py | p_statements_begin0 | JohnnyBro/tytus | 0 | python | def p_statements_begin0(t):
' '
t[0] = None | def p_statements_begin0(t):
' '
t[0] = None<|docstring|>statements_begin : empty<|endoftext|> |
295014e09ae2ea994dedc004c98af56302c1e54a2a23bd48f6a3717395dfdf1f | def p_exception_opt(t):
'exception_opt : EXCEPTION when_opt '
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('exception_opt'), [t[1], t[2]], childsProduction)
addCad('**\\<EXCEPTION_OPT>** ::= tException \\<WHEN_OPT> ')
t[0] ... | exception_opt : EXCEPTION when_opt | parser/fase2/team03/grammarReview.py | p_exception_opt | JohnnyBro/tytus | 0 | python | def p_exception_opt(t):
' '
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('exception_opt'), [t[1], t[2]], childsProduction)
addCad('**\\<EXCEPTION_OPT>** ::= tException \\<WHEN_OPT> ')
t[0] = upNodo('token', 0, 0, graph_ref) | def p_exception_opt(t):
' '
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('exception_opt'), [t[1], t[2]], childsProduction)
addCad('**\\<EXCEPTION_OPT>** ::= tException \\<WHEN_OPT> ')
t[0] = upNodo('token', 0, 0, graph_ref)<|doc... |
0c70940bfa6133aa8658c51eb402170bf0c0f07f3d5670e00b901b8b1cc300c0 | def p_exception_opt1(t):
'exception_opt : empty '
t[0] = None | exception_opt : empty | parser/fase2/team03/grammarReview.py | p_exception_opt1 | JohnnyBro/tytus | 0 | python | def p_exception_opt1(t):
' '
t[0] = None | def p_exception_opt1(t):
' '
t[0] = None<|docstring|>exception_opt : empty<|endoftext|> |
dcb4fdc90ef161251e32fe53b8591cdc6c1cb92fcbaf9dd95ec83d73804ffc78 | def p_when_opt(t):
'when_opt : when_opt WHEN atr_when then_op\n | WHEN atr_when then_op\n | WHEN '
token = t.slice[1]
if (len(t) == 5):
childsProduction = addNotNoneChild(t, [1, 3, 4])
graph_ref = graph_node(str('when_opt'), [t[1], t[2], t[3], t[4... | when_opt : when_opt WHEN atr_when then_op
| WHEN atr_when then_op
| WHEN | parser/fase2/team03/grammarReview.py | p_when_opt | JohnnyBro/tytus | 0 | python | def p_when_opt(t):
'when_opt : when_opt WHEN atr_when then_op\n | WHEN atr_when then_op\n | WHEN '
token = t.slice[1]
if (len(t) == 5):
childsProduction = addNotNoneChild(t, [1, 3, 4])
graph_ref = graph_node(str('when_opt'), [t[1], t[2], t[3], t[4... | def p_when_opt(t):
'when_opt : when_opt WHEN atr_when then_op\n | WHEN atr_when then_op\n | WHEN '
token = t.slice[1]
if (len(t) == 5):
childsProduction = addNotNoneChild(t, [1, 3, 4])
graph_ref = graph_node(str('when_opt'), [t[1], t[2], t[3], t[4... |
04d981793de2e0fbe9ffa7c01dbc9996c05f7052305a632964e734311fab705c | def p_when_opt0(t):
'when_opt : empty '
t[0] = None | when_opt : empty | parser/fase2/team03/grammarReview.py | p_when_opt0 | JohnnyBro/tytus | 0 | python | def p_when_opt0(t):
' '
t[0] = None | def p_when_opt0(t):
' '
t[0] = None<|docstring|>when_opt : empty<|endoftext|> |
7b38ed5c0772690eba5a927c58ab30cf95500565d3905d9208a341bae13788bb | def p_atr_when(t):
'atr_when : NO_DATA_FOUND\n | TOO_MANY_ROWS\n | ID '
token = t.slice[1]
if (token.type == 'NO_DATA_FOUND'):
graph_ref = graph_node(str('atr_when'), [t[1]], [])
addCad('**\\<ATR_WHEN>** ::= tNo_data_found ')
t[0] = upNodo('to... | atr_when : NO_DATA_FOUND
| TOO_MANY_ROWS
| ID | parser/fase2/team03/grammarReview.py | p_atr_when | JohnnyBro/tytus | 0 | python | def p_atr_when(t):
'atr_when : NO_DATA_FOUND\n | TOO_MANY_ROWS\n | ID '
token = t.slice[1]
if (token.type == 'NO_DATA_FOUND'):
graph_ref = graph_node(str('atr_when'), [t[1]], [])
addCad('**\\<ATR_WHEN>** ::= tNo_data_found ')
t[0] = upNodo('to... | def p_atr_when(t):
'atr_when : NO_DATA_FOUND\n | TOO_MANY_ROWS\n | ID '
token = t.slice[1]
if (token.type == 'NO_DATA_FOUND'):
graph_ref = graph_node(str('atr_when'), [t[1]], [])
addCad('**\\<ATR_WHEN>** ::= tNo_data_found ')
t[0] = upNodo('to... |
374f71b35d1c74bb83c0eeea76ca776a2c9e84573c3643eff3354175db35bb5c | def p_then_op(t):
' then_op : THEN raise_op \n '
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('then_op'), [t[1], t[2]], childsProduction)
addCad('**\\<then_op>** ::= tTHEN \\<RAISE_OP> ')
t[0] = upNodo('token', 0, 0... | then_op : THEN raise_op | parser/fase2/team03/grammarReview.py | p_then_op | JohnnyBro/tytus | 0 | python | def p_then_op(t):
' \n '
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('then_op'), [t[1], t[2]], childsProduction)
addCad('**\\<then_op>** ::= tTHEN \\<RAISE_OP> ')
t[0] = upNodo('token', 0, 0, graph_ref) | def p_then_op(t):
' \n '
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('then_op'), [t[1], t[2]], childsProduction)
addCad('**\\<then_op>** ::= tTHEN \\<RAISE_OP> ')
t[0] = upNodo('token', 0, 0, graph_ref)<|docstring|>... |
00ea696614e5feda16035d17577a480aa4bce2803f8bbe6d406580893f8a97ec | def p_then_op1(t):
' then_op : THEN NULL PUNTOCOMA\n '
if (len(t) == 4):
graph_ref = graph_node(str('then_op'), [t[1], t[2], t[3]], [])
addCad('**\\<then_op>** ::= tThen tNull ')
t[0] = upNodo('token', 0, 0, graph_ref) | then_op : THEN NULL PUNTOCOMA | parser/fase2/team03/grammarReview.py | p_then_op1 | JohnnyBro/tytus | 0 | python | def p_then_op1(t):
' \n '
if (len(t) == 4):
graph_ref = graph_node(str('then_op'), [t[1], t[2], t[3]], [])
addCad('**\\<then_op>** ::= tThen tNull ')
t[0] = upNodo('token', 0, 0, graph_ref) | def p_then_op1(t):
' \n '
if (len(t) == 4):
graph_ref = graph_node(str('then_op'), [t[1], t[2], t[3]], [])
addCad('**\\<then_op>** ::= tThen tNull ')
t[0] = upNodo('token', 0, 0, graph_ref)<|docstring|>then_op : THEN NULL PUNTOCOMA<|endoftext|> |
b7b82f875f0ccc9e3bb429ed3126236bb5cf7abb0c386846857524b6c0bd682d | def p_raise_op(t):
' raise_op : RAISE atr_raise TEXTO COMA col_name PUNTOCOMA\n | RAISE atr_raise TEXTO PUNTOCOMA'
token = t.slice[1]
if (len(t) == 7):
childsProduction = addNotNoneChild(t, [2, 5])
graph_ref = graph_node(str('raise_op'), [t[1], t[2], t[3], t[4], t[5... | raise_op : RAISE atr_raise TEXTO COMA col_name PUNTOCOMA
| RAISE atr_raise TEXTO PUNTOCOMA | parser/fase2/team03/grammarReview.py | p_raise_op | JohnnyBro/tytus | 0 | python | def p_raise_op(t):
' raise_op : RAISE atr_raise TEXTO COMA col_name PUNTOCOMA\n | RAISE atr_raise TEXTO PUNTOCOMA'
token = t.slice[1]
if (len(t) == 7):
childsProduction = addNotNoneChild(t, [2, 5])
graph_ref = graph_node(str('raise_op'), [t[1], t[2], t[3], t[4], t[5... | def p_raise_op(t):
' raise_op : RAISE atr_raise TEXTO COMA col_name PUNTOCOMA\n | RAISE atr_raise TEXTO PUNTOCOMA'
token = t.slice[1]
if (len(t) == 7):
childsProduction = addNotNoneChild(t, [2, 5])
graph_ref = graph_node(str('raise_op'), [t[1], t[2], t[3], t[4], t[5... |
9ff691c19f13617b3c56f67cb28bd067d6359cf228523277a02e83f124c7c02c | def p_raise_op1(t):
' raise_op : empty '
t[0] = None | raise_op : empty | parser/fase2/team03/grammarReview.py | p_raise_op1 | JohnnyBro/tytus | 0 | python | def p_raise_op1(t):
' '
t[0] = None | def p_raise_op1(t):
' '
t[0] = None<|docstring|>raise_op : empty<|endoftext|> |
a9e7a5338de4dc34b48e0a8548e1bec0a443acb842b52cbf0d98dd717fdcecab | def p_atr_raise(t):
'atr_raise : NOTICE\n | EXCEPTION\n | ID '
token = t.slice[1]
if (token.type == 'NOTICE'):
graph_ref = graph_node(str('atr_when'), [t[1]], [])
addCad('**\\<ATR_RAISE>** ::= tNotice ')
t[0] = upNodo('token', 0, 0, grap... | atr_raise : NOTICE
| EXCEPTION
| ID | parser/fase2/team03/grammarReview.py | p_atr_raise | JohnnyBro/tytus | 0 | python | def p_atr_raise(t):
'atr_raise : NOTICE\n | EXCEPTION\n | ID '
token = t.slice[1]
if (token.type == 'NOTICE'):
graph_ref = graph_node(str('atr_when'), [t[1]], [])
addCad('**\\<ATR_RAISE>** ::= tNotice ')
t[0] = upNodo('token', 0, 0, grap... | def p_atr_raise(t):
'atr_raise : NOTICE\n | EXCEPTION\n | ID '
token = t.slice[1]
if (token.type == 'NOTICE'):
graph_ref = graph_node(str('atr_when'), [t[1]], [])
addCad('**\\<ATR_RAISE>** ::= tNotice ')
t[0] = upNodo('token', 0, 0, grap... |
08933a5e60e2e591e65e321ec488fde860d3965c70246ff9851e13edba5ca71c | def p_return_opt(t):
'return_opt : RETURN ID PUNTOCOMA '
if (len(t) == 4):
graph_ref = graph_node(str('return_opt'), [t[1], t[2], t[3]], [])
addCad("**\\<RETURN_OPT>** ::= tReturn tIdentifier ';' ")
t[0] = upNodo('token', 0, 0, graph_ref) | return_opt : RETURN ID PUNTOCOMA | parser/fase2/team03/grammarReview.py | p_return_opt | JohnnyBro/tytus | 0 | python | def p_return_opt(t):
' '
if (len(t) == 4):
graph_ref = graph_node(str('return_opt'), [t[1], t[2], t[3]], [])
addCad("**\\<RETURN_OPT>** ::= tReturn tIdentifier ';' ")
t[0] = upNodo('token', 0, 0, graph_ref) | def p_return_opt(t):
' '
if (len(t) == 4):
graph_ref = graph_node(str('return_opt'), [t[1], t[2], t[3]], [])
addCad("**\\<RETURN_OPT>** ::= tReturn tIdentifier ';' ")
t[0] = upNodo('token', 0, 0, graph_ref)<|docstring|>return_opt : RETURN ID PUNTOCOMA<|endoftext|> |
ce0a266c47ee4fc922df646dbd213b37b269507d2e5fcc3dd3f35f28e1b6be2a | def p_return_opt0(t):
'return_opt : empty '
t[0] = None | return_opt : empty | parser/fase2/team03/grammarReview.py | p_return_opt0 | JohnnyBro/tytus | 0 | python | def p_return_opt0(t):
' '
t[0] = None | def p_return_opt0(t):
' '
t[0] = None<|docstring|>return_opt : empty<|endoftext|> |
fca1c07f60aa02d0813e6e7ca9f8ce3fa8ab0bbd8fd7de62912b0d7b4508a02b | def p_stm_execute(t):
'stm_execute : EXECUTE TEXTO INTO ID USING group_list \n | EXECUTE ID PARA TEXTO COMA column_list PARC INTO ID USING group_list\n | EXECUTE ID PARA TEXTO TEXTO COMA column_list PARC INTO ID USING group_list\n | EX... | stm_execute : EXECUTE TEXTO INTO ID USING group_list
| EXECUTE ID PARA TEXTO COMA column_list PARC INTO ID USING group_list
| EXECUTE ID PARA TEXTO TEXTO COMA column_list PARC INTO ID USING group_list
| EXECUTE ID PARA TEXTO COMA column_list PARC USING group_list
| EXECUTE ID PARA T... | parser/fase2/team03/grammarReview.py | p_stm_execute | JohnnyBro/tytus | 0 | python | def p_stm_execute(t):
'stm_execute : EXECUTE TEXTO INTO ID USING group_list \n | EXECUTE ID PARA TEXTO COMA column_list PARC INTO ID USING group_list\n | EXECUTE ID PARA TEXTO TEXTO COMA column_list PARC INTO ID USING group_list\n | EX... | def p_stm_execute(t):
'stm_execute : EXECUTE TEXTO INTO ID USING group_list \n | EXECUTE ID PARA TEXTO COMA column_list PARC INTO ID USING group_list\n | EXECUTE ID PARA TEXTO TEXTO COMA column_list PARC INTO ID USING group_list\n | EX... |
197d8e36a480c0261b0b5c2c809b393ea57136a80ba5b59d8c903c143c3668eb | def p_stm_get(t):
'stm_get : GET DIAGNOSTICS asig_basica \n '
token = t.slice[1]
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [3])
graph_ref = graph_node(str('STM_GET'), [t[1], t[2], t[3]], childsProduction)
addCad('**\\<STM_GET>** ::= tGet tDia... | stm_get : GET DIAGNOSTICS asig_basica | parser/fase2/team03/grammarReview.py | p_stm_get | JohnnyBro/tytus | 0 | python | def p_stm_get(t):
' \n '
token = t.slice[1]
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [3])
graph_ref = graph_node(str('STM_GET'), [t[1], t[2], t[3]], childsProduction)
addCad('**\\<STM_GET>** ::= tGet tDiagnostics \\<ASIGNACION_BASICA> ')
... | def p_stm_get(t):
' \n '
token = t.slice[1]
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [3])
graph_ref = graph_node(str('STM_GET'), [t[1], t[2], t[3]], childsProduction)
addCad('**\\<STM_GET>** ::= tGet tDiagnostics \\<ASIGNACION_BASICA> ')
... |
f730b845cf27ac3fe322e55f6b7204930b1c9c56858741582ef4cef80de90427 | def p_stm_case(t):
'stm_case : CASE ID when_inst case_else END CASE '
token = t.slice[1]
if (len(t) == 7):
childsProduction = addNotNoneChild(t, [3, 4])
graph_ref = graph_node(str('stm_case'), [t[1], t[2], t[3], t[4], t[5], t[6]], childsProduction)
addCad('**\\<STM_CASE>** ::= ... | stm_case : CASE ID when_inst case_else END CASE | parser/fase2/team03/grammarReview.py | p_stm_case | JohnnyBro/tytus | 0 | python | def p_stm_case(t):
' '
token = t.slice[1]
if (len(t) == 7):
childsProduction = addNotNoneChild(t, [3, 4])
graph_ref = graph_node(str('stm_case'), [t[1], t[2], t[3], t[4], t[5], t[6]], childsProduction)
addCad('**\\<STM_CASE>** ::= tCase tIdentifier [\\<WHEN_INST>] [\\<CASE_... | def p_stm_case(t):
' '
token = t.slice[1]
if (len(t) == 7):
childsProduction = addNotNoneChild(t, [3, 4])
graph_ref = graph_node(str('stm_case'), [t[1], t[2], t[3], t[4], t[5], t[6]], childsProduction)
addCad('**\\<STM_CASE>** ::= tCase tIdentifier [\\<WHEN_INST>] [\\<CASE_... |
8836ebeb7b7671ef67bc554d9b13b946ee186fd3a1c68ce5f461f62f28af7430 | def p_when_inst(t):
'when_inst : when_inst WHEN condition THEN case_inst\n | WHEN condition THEN case_inst '
token = t.slice[1]
if (len(t) == 6):
childsProduction = addNotNoneChild(t, [1, 3, 5])
graph_ref = graph_node(str('when_inst'), [t[1], t[2], t[3], t[4], t[5]], ch... | when_inst : when_inst WHEN condition THEN case_inst
| WHEN condition THEN case_inst | parser/fase2/team03/grammarReview.py | p_when_inst | JohnnyBro/tytus | 0 | python | def p_when_inst(t):
'when_inst : when_inst WHEN condition THEN case_inst\n | WHEN condition THEN case_inst '
token = t.slice[1]
if (len(t) == 6):
childsProduction = addNotNoneChild(t, [1, 3, 5])
graph_ref = graph_node(str('when_inst'), [t[1], t[2], t[3], t[4], t[5]], ch... | def p_when_inst(t):
'when_inst : when_inst WHEN condition THEN case_inst\n | WHEN condition THEN case_inst '
token = t.slice[1]
if (len(t) == 6):
childsProduction = addNotNoneChild(t, [1, 3, 5])
graph_ref = graph_node(str('when_inst'), [t[1], t[2], t[3], t[4], t[5]], ch... |
09890b4fdb1683f8c3d1abe6050423e1f5c3212341eb0650022783915220d350 | def p_case_else(t):
'case_else : ELSE case_inst\n | empty '
token = t.slice[1]
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('case_else'), [t[1], t[2]], childsProduction)
addCad('**\\<CASE_ELSE>** ::= tElse \\<CASE_IN... | case_else : ELSE case_inst
| empty | parser/fase2/team03/grammarReview.py | p_case_else | JohnnyBro/tytus | 0 | python | def p_case_else(t):
'case_else : ELSE case_inst\n | empty '
token = t.slice[1]
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('case_else'), [t[1], t[2]], childsProduction)
addCad('**\\<CASE_ELSE>** ::= tElse \\<CASE_IN... | def p_case_else(t):
'case_else : ELSE case_inst\n | empty '
token = t.slice[1]
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('case_else'), [t[1], t[2]], childsProduction)
addCad('**\\<CASE_ELSE>** ::= tElse \\<CASE_IN... |
b80cb9452958cbd4e1ebef444213250fa4a280e8718baae665d4a4f66b10b0aa | def p_case_inst(t):
'case_inst : case_inst statements_sql PUNTOCOMA\n | case_inst raise_op\n | case_inst asig_basica PUNTOCOMA '
token = t.slice[2]
if (token.type == 'statements_sql'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref = graph_n... | case_inst : case_inst statements_sql PUNTOCOMA
| case_inst raise_op
| case_inst asig_basica PUNTOCOMA | parser/fase2/team03/grammarReview.py | p_case_inst | JohnnyBro/tytus | 0 | python | def p_case_inst(t):
'case_inst : case_inst statements_sql PUNTOCOMA\n | case_inst raise_op\n | case_inst asig_basica PUNTOCOMA '
token = t.slice[2]
if (token.type == 'statements_sql'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref = graph_n... | def p_case_inst(t):
'case_inst : case_inst statements_sql PUNTOCOMA\n | case_inst raise_op\n | case_inst asig_basica PUNTOCOMA '
token = t.slice[2]
if (token.type == 'statements_sql'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref = graph_n... |
4674335160082465182eae26710062b590a25f99e0631acca2ab828189e4a449 | def p_case_inst0(t):
'case_inst : empty '
t[0] = None | case_inst : empty | parser/fase2/team03/grammarReview.py | p_case_inst0 | JohnnyBro/tytus | 0 | python | def p_case_inst0(t):
' '
t[0] = None | def p_case_inst0(t):
' '
t[0] = None<|docstring|>case_inst : empty<|endoftext|> |
a343d9aad2bd231488592caa12d6ae4e0890742c9986c21cbc967a18dbd17993 | def p_statements_sql(t):
'statements_sql : stm_show\n | stm_create\n | stm_alter\n | stm_use_db\n | stm_select\n | stm_insert\n | stm_update\n | stm_delete\n | s... | statements_sql : stm_show
| stm_create
| stm_alter
| stm_use_db
| stm_select
| stm_insert
| stm_update
| stm_delete
| stm_drop | parser/fase2/team03/grammarReview.py | p_statements_sql | JohnnyBro/tytus | 0 | python | def p_statements_sql(t):
'statements_sql : stm_show\n | stm_create\n | stm_alter\n | stm_use_db\n | stm_select\n | stm_insert\n | stm_update\n | stm_delete\n | s... | def p_statements_sql(t):
'statements_sql : stm_show\n | stm_create\n | stm_alter\n | stm_use_db\n | stm_select\n | stm_insert\n | stm_update\n | stm_delete\n | s... |
75668402fc32e9cc753b2bddf65225ca95931ec5738a15fa14327bc7ff7cd409 | def p_if_opt(t):
'if_opt : IF\n | empty'
token = t.slice[1]
if (token.type == 'IF'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<IF_OPT>** ::= tIf ')
t[0] = upNodo(True, 0, 0, graph_ref)
else:
t[0] = None | if_opt : IF
| empty | parser/fase2/team03/grammarReview.py | p_if_opt | JohnnyBro/tytus | 0 | python | def p_if_opt(t):
'if_opt : IF\n | empty'
token = t.slice[1]
if (token.type == 'IF'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<IF_OPT>** ::= tIf ')
t[0] = upNodo(True, 0, 0, graph_ref)
else:
t[0] = None | def p_if_opt(t):
'if_opt : IF\n | empty'
token = t.slice[1]
if (token.type == 'IF'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<IF_OPT>** ::= tIf ')
t[0] = upNodo(True, 0, 0, graph_ref)
else:
t[0] = None<|docstring|>if_opt : IF
| empty<|endoftext|> |
9339aa86815ad8f3a26c872649c500d40b729fda8b974cbcb758afe5e638c9f3 | def p_stm_create_function(t):
'stm_create_function : CREATE FUNCTION ID PARA list_param_function_opt PARC RETURNS type as_opt stm_begin'
childsProduction = addNotNoneChild(t, [8, 9, 10])
lista = None
if (t[5] != None):
lista = t[5][0]
childsProduction.append(lista.graph_ref)
graph_re... | stm_create_function : CREATE FUNCTION ID PARA list_param_function_opt PARC RETURNS type as_opt stm_begin | parser/fase2/team03/grammarReview.py | p_stm_create_function | JohnnyBro/tytus | 0 | python | def p_stm_create_function(t):
childsProduction = addNotNoneChild(t, [8, 9, 10])
lista = None
if (t[5] != None):
lista = t[5][0]
childsProduction.append(lista.graph_ref)
graph_ref = graph_node(str('stm_create_function'), [t[1], t[2], t[3], t[4], lista, t[6], t[7], t[8], t[9], t[10]],... | def p_stm_create_function(t):
childsProduction = addNotNoneChild(t, [8, 9, 10])
lista = None
if (t[5] != None):
lista = t[5][0]
childsProduction.append(lista.graph_ref)
graph_ref = graph_node(str('stm_create_function'), [t[1], t[2], t[3], t[4], lista, t[6], t[7], t[8], t[9], t[10]],... |
d76946082da4d82ab99eaf6f5cac77eb4bd064752a234bded443baf0553a1825 | def p_list_param_function_opt(t):
'list_param_function_opt : params_function \n | empty'
token = t.slice[1]
if (token.type == 'params_function'):
lista = None
childsProduction = []
if (t[1] != None):
lista = t[1][0]
childsProduc... | list_param_function_opt : params_function
| empty | parser/fase2/team03/grammarReview.py | p_list_param_function_opt | JohnnyBro/tytus | 0 | python | def p_list_param_function_opt(t):
'list_param_function_opt : params_function \n | empty'
token = t.slice[1]
if (token.type == 'params_function'):
lista = None
childsProduction = []
if (t[1] != None):
lista = t[1][0]
childsProduc... | def p_list_param_function_opt(t):
'list_param_function_opt : params_function \n | empty'
token = t.slice[1]
if (token.type == 'params_function'):
lista = None
childsProduction = []
if (t[1] != None):
lista = t[1][0]
childsProduc... |
f04d35e2dea9bfae5ab64f839797a3bd589b8f59f9b259cc8ef2ee0ecd8fd9c4 | def p_params_function(t):
'params_function : params_function COMA param_function\n | param_function'
token = t.slice[1]
if (token.type == 'params_function'):
lista = None
childsProduction = [t, [3]]
if (t[1] != None):
lista = t[1][0]
ch... | params_function : params_function COMA param_function
| param_function | parser/fase2/team03/grammarReview.py | p_params_function | JohnnyBro/tytus | 0 | python | def p_params_function(t):
'params_function : params_function COMA param_function\n | param_function'
token = t.slice[1]
if (token.type == 'params_function'):
lista = None
childsProduction = [t, [3]]
if (t[1] != None):
lista = t[1][0]
ch... | def p_params_function(t):
'params_function : params_function COMA param_function\n | param_function'
token = t.slice[1]
if (token.type == 'params_function'):
lista = None
childsProduction = [t, [3]]
if (t[1] != None):
lista = t[1][0]
ch... |
c1c5eb73023ebc26f61c05f33eba0b8d65fe718000c201221d2b520bb7261a83 | def p_param_function(t):
'param_function : ID\n | type'
token = t.slice[1]
if (token.type == 'ID'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<PARAM_FUNCTION>** ::= tIdentifier ')
t[0] = Parameter(t[1], None, None, token.lineno, token.lexpos, graph_ref)
... | param_function : ID
| type | parser/fase2/team03/grammarReview.py | p_param_function | JohnnyBro/tytus | 0 | python | def p_param_function(t):
'param_function : ID\n | type'
token = t.slice[1]
if (token.type == 'ID'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<PARAM_FUNCTION>** ::= tIdentifier ')
t[0] = Parameter(t[1], None, None, token.lineno, token.lexpos, graph_ref)
... | def p_param_function(t):
'param_function : ID\n | type'
token = t.slice[1]
if (token.type == 'ID'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<PARAM_FUNCTION>** ::= tIdentifier ')
t[0] = Parameter(t[1], None, None, token.lineno, token.lexpos, graph_ref)
... |
efb95f43a778e2da640075105c0ca25456b5beb75e936a61367623c2c6b4ec14 | def p_param_function_1(t):
'param_function : ID type\n | param_mode ID type'
token = t.slice[1]
if (token.type == 'ID'):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('param_function '), [t[1], t[2]], childsProduction)
addCad('**\\<PAR... | param_function : ID type
| param_mode ID type | parser/fase2/team03/grammarReview.py | p_param_function_1 | JohnnyBro/tytus | 0 | python | def p_param_function_1(t):
'param_function : ID type\n | param_mode ID type'
token = t.slice[1]
if (token.type == 'ID'):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('param_function '), [t[1], t[2]], childsProduction)
addCad('**\\<PAR... | def p_param_function_1(t):
'param_function : ID type\n | param_mode ID type'
token = t.slice[1]
if (token.type == 'ID'):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('param_function '), [t[1], t[2]], childsProduction)
addCad('**\\<PAR... |
b6bf334d6e31f933a152f8b2ad7e7c276e7a60b40c4a2f69ca687aa14ff20e4b | def p_param_mode(t):
'param_mode : IN\n | OUT\n | INOUT'
token = t.slice[1]
graph_ref = graph_node(str(t[1]))
addCad(('**\\<PARAM_MODE>** ::= ' + str(token.type)))
t[0] = ParamMode(t[1], t.slice[1].lineno, t.slice[1].lexpos, graph_ref) | param_mode : IN
| OUT
| INOUT | parser/fase2/team03/grammarReview.py | p_param_mode | JohnnyBro/tytus | 0 | python | def p_param_mode(t):
'param_mode : IN\n | OUT\n | INOUT'
token = t.slice[1]
graph_ref = graph_node(str(t[1]))
addCad(('**\\<PARAM_MODE>** ::= ' + str(token.type)))
t[0] = ParamMode(t[1], t.slice[1].lineno, t.slice[1].lexpos, graph_ref) | def p_param_mode(t):
'param_mode : IN\n | OUT\n | INOUT'
token = t.slice[1]
graph_ref = graph_node(str(t[1]))
addCad(('**\\<PARAM_MODE>** ::= ' + str(token.type)))
t[0] = ParamMode(t[1], t.slice[1].lineno, t.slice[1].lexpos, graph_ref)<|docstring|>para... |
5fa9a820bbeee7670b587362cbf17e7cbd06433c9eb46132ea9201d54188dca2 | def p_as_opt(t):
'as_opt : AS DOLLAR DOLLAR\n | empty'
if (len(t) == 4):
graph_ref = graph_node(str('as_opt'), [t[1], t[2], t[3]], [])
addCad("**\\<AS_OPT>** ::= tAs '$$' ';' ")
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None | as_opt : AS DOLLAR DOLLAR
| empty | parser/fase2/team03/grammarReview.py | p_as_opt | JohnnyBro/tytus | 0 | python | def p_as_opt(t):
'as_opt : AS DOLLAR DOLLAR\n | empty'
if (len(t) == 4):
graph_ref = graph_node(str('as_opt'), [t[1], t[2], t[3]], [])
addCad("**\\<AS_OPT>** ::= tAs '$$' ';' ")
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None | def p_as_opt(t):
'as_opt : AS DOLLAR DOLLAR\n | empty'
if (len(t) == 4):
graph_ref = graph_node(str('as_opt'), [t[1], t[2], t[3]], [])
addCad("**\\<AS_OPT>** ::= tAs '$$' ';' ")
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None<|docstring|>as_opt : ... |
1f0f88ca82689513bf6e40ad270c28854e5e814717db16db40b658ddc7849551 | def p_declares_opt(t):
'declares_opt : declares_opt declare_opt\n | declare_opt'
token = t.slice[1]
if (token.type == 'declares_opt'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref = graph_node(str('declares_opt'), [t[1], t[2]], childsProduction)
addCad('... | declares_opt : declares_opt declare_opt
| declare_opt | parser/fase2/team03/grammarReview.py | p_declares_opt | JohnnyBro/tytus | 0 | python | def p_declares_opt(t):
'declares_opt : declares_opt declare_opt\n | declare_opt'
token = t.slice[1]
if (token.type == 'declares_opt'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref = graph_node(str('declares_opt'), [t[1], t[2]], childsProduction)
addCad('... | def p_declares_opt(t):
'declares_opt : declares_opt declare_opt\n | declare_opt'
token = t.slice[1]
if (token.type == 'declares_opt'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref = graph_node(str('declares_opt'), [t[1], t[2]], childsProduction)
addCad('... |
23254dd62a9c995170cb0b7d27681d67dbe5d7bf4be6c06ee82efb5e9fae118d | def p_declare_opt(t):
'declare_opt : DECLARE declarations\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('declare_opt'), [t[1], t[2]], childsProduction)
addCad("**\\<DECLARE_OPT>** ::... | declare_opt : DECLARE declarations
| empty | parser/fase2/team03/grammarReview.py | p_declare_opt | JohnnyBro/tytus | 0 | python | def p_declare_opt(t):
'declare_opt : DECLARE declarations\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('declare_opt'), [t[1], t[2]], childsProduction)
addCad("**\\<DECLARE_OPT>** ::... | def p_declare_opt(t):
'declare_opt : DECLARE declarations\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('declare_opt'), [t[1], t[2]], childsProduction)
addCad("**\\<DECLARE_OPT>** ::... |
093fba53ab8ecc385d1ca9402dbc180776e0518e5ea8d760bc7c27a4ddb06778 | def p_declarations(t):
'declarations : declarations declaration\n | declaration'
token = t.slice[1]
if (token.type == 'declarations'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref = graph_node(str('declarations'), [t[1], t[2]], childsProduction)
addCad('... | declarations : declarations declaration
| declaration | parser/fase2/team03/grammarReview.py | p_declarations | JohnnyBro/tytus | 0 | python | def p_declarations(t):
'declarations : declarations declaration\n | declaration'
token = t.slice[1]
if (token.type == 'declarations'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref = graph_node(str('declarations'), [t[1], t[2]], childsProduction)
addCad('... | def p_declarations(t):
'declarations : declarations declaration\n | declaration'
token = t.slice[1]
if (token.type == 'declarations'):
childsProduction = addNotNoneChild(t, [1, 2])
graph_ref = graph_node(str('declarations'), [t[1], t[2]], childsProduction)
addCad('... |
4a94a6ce395c3a78eb1202e2314eb4f61c7d573635dc3e1a4e03505024470cbd | def p_declaration(t):
'declaration : ID constant_opt type collate_opt not_null_opt expression_opt PUNTOCOMA \n | ID ALIAS FOR DOLLAR ENTERO PUNTOCOMA'
if (len(t) == 8):
childsProduction = addNotNoneChild(t, [2, 3, 4, 5, 6])
graph_ref = graph_node(str('declaration'), [t[1], t[... | declaration : ID constant_opt type collate_opt not_null_opt expression_opt PUNTOCOMA
| ID ALIAS FOR DOLLAR ENTERO PUNTOCOMA | parser/fase2/team03/grammarReview.py | p_declaration | JohnnyBro/tytus | 0 | python | def p_declaration(t):
'declaration : ID constant_opt type collate_opt not_null_opt expression_opt PUNTOCOMA \n | ID ALIAS FOR DOLLAR ENTERO PUNTOCOMA'
if (len(t) == 8):
childsProduction = addNotNoneChild(t, [2, 3, 4, 5, 6])
graph_ref = graph_node(str('declaration'), [t[1], t[... | def p_declaration(t):
'declaration : ID constant_opt type collate_opt not_null_opt expression_opt PUNTOCOMA \n | ID ALIAS FOR DOLLAR ENTERO PUNTOCOMA'
if (len(t) == 8):
childsProduction = addNotNoneChild(t, [2, 3, 4, 5, 6])
graph_ref = graph_node(str('declaration'), [t[1], t[... |
ee8752cd224600473b05ccfa50da732e88ce284933a559b42755cfb2077e7558 | def p_declaration_1(t):
'declaration : ID ID PORCENTAJE ROWTYPE PUNTOCOMA\n | ID ID PUNTO ID PORCENTAJE TYPE PUNTOCOMA\n | ID RECORD PUNTOCOMA'
if (len(t) == 6):
graph_ref = graph_node(str('declaration'), [t[1], ((str(t[2]) + str(t[3])) + str(t[4])), t[5]], [])
... | declaration : ID ID PORCENTAJE ROWTYPE PUNTOCOMA
| ID ID PUNTO ID PORCENTAJE TYPE PUNTOCOMA
| ID RECORD PUNTOCOMA | parser/fase2/team03/grammarReview.py | p_declaration_1 | JohnnyBro/tytus | 0 | python | def p_declaration_1(t):
'declaration : ID ID PORCENTAJE ROWTYPE PUNTOCOMA\n | ID ID PUNTO ID PORCENTAJE TYPE PUNTOCOMA\n | ID RECORD PUNTOCOMA'
if (len(t) == 6):
graph_ref = graph_node(str('declaration'), [t[1], ((str(t[2]) + str(t[3])) + str(t[4])), t[5]], [])
... | def p_declaration_1(t):
'declaration : ID ID PORCENTAJE ROWTYPE PUNTOCOMA\n | ID ID PUNTO ID PORCENTAJE TYPE PUNTOCOMA\n | ID RECORD PUNTOCOMA'
if (len(t) == 6):
graph_ref = graph_node(str('declaration'), [t[1], ((str(t[2]) + str(t[3])) + str(t[4])), t[5]], [])
... |
4b45bd2198436075b5288838e2318ebc28b4fe52d50a5d0ff9b595d03598254c | def p_constant_opt(t):
'constant_opt : CONSTANT\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<CONSTANT>** ::= tConstant ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None | constant_opt : CONSTANT
| empty | parser/fase2/team03/grammarReview.py | p_constant_opt | JohnnyBro/tytus | 0 | python | def p_constant_opt(t):
'constant_opt : CONSTANT\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<CONSTANT>** ::= tConstant ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None | def p_constant_opt(t):
'constant_opt : CONSTANT\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<CONSTANT>** ::= tConstant ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None<|docstring|>c... |
c889f541e44c949a7ff7d9deab4096c9788adac61d9025f4c3c1858905573709 | def p_collate_opt(t):
'collate_opt : COLLATE ID\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
graph_ref = graph_node(str('collate_opt'), [t[1], t[2]], [])
addCad('**\\<COLLATE>** ::= tCollate ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
... | collate_opt : COLLATE ID
| empty | parser/fase2/team03/grammarReview.py | p_collate_opt | JohnnyBro/tytus | 0 | python | def p_collate_opt(t):
'collate_opt : COLLATE ID\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
graph_ref = graph_node(str('collate_opt'), [t[1], t[2]], [])
addCad('**\\<COLLATE>** ::= tCollate ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
... | def p_collate_opt(t):
'collate_opt : COLLATE ID\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
graph_ref = graph_node(str('collate_opt'), [t[1], t[2]], [])
addCad('**\\<COLLATE>** ::= tCollate ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
... |
e19678403b1b723f21da72bd68e81ee72808911e765981c16aca4abb5b2c9217 | def p_not_null_opt(t):
'not_null_opt : NOT NULL\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<NOT_NULL>** ::= tNot tNull ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
... | not_null_opt : NOT NULL
| empty | parser/fase2/team03/grammarReview.py | p_not_null_opt | JohnnyBro/tytus | 0 | python | def p_not_null_opt(t):
'not_null_opt : NOT NULL\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<NOT_NULL>** ::= tNot tNull ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
... | def p_not_null_opt(t):
'not_null_opt : NOT NULL\n | empty'
token = t.slice[1]
if (token.type != 'empty'):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<NOT_NULL>** ::= tNot tNull ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
... |
858b1bf0aa41f9b95e885ee237784475a6dd02ad247f240037051bd31059aae1 | def p_expression_opt(t):
'expression_opt : DEFAULT expression\n | DOSPUNTOS IGUAL expression\n | IGUAL expression\n | empty'
token = t.slice[1]
if (token.type == 'DEFAULT'):
childsProduction = addNotNoneChild(t, [2])
grap... | expression_opt : DEFAULT expression
| DOSPUNTOS IGUAL expression
| IGUAL expression
| empty | parser/fase2/team03/grammarReview.py | p_expression_opt | JohnnyBro/tytus | 0 | python | def p_expression_opt(t):
'expression_opt : DEFAULT expression\n | DOSPUNTOS IGUAL expression\n | IGUAL expression\n | empty'
token = t.slice[1]
if (token.type == 'DEFAULT'):
childsProduction = addNotNoneChild(t, [2])
grap... | def p_expression_opt(t):
'expression_opt : DEFAULT expression\n | DOSPUNTOS IGUAL expression\n | IGUAL expression\n | empty'
token = t.slice[1]
if (token.type == 'DEFAULT'):
childsProduction = addNotNoneChild(t, [2])
grap... |
78fa738f5909e5a0dc452102222553fe3a27e7c623f40827972d49903b8abe63 | def p_stm_language(t):
'stm_language : DOLLAR DOLLAR LANGUAGE PLPGSQL'
graph_ref = graph_node(str('stm_language'), [((str(t[1]) + ' ') + str(t[2])), t[3], t[4]], [])
addCad("**\\<STM_LANGUAGE>** ::= '$$' tLanguage tPlpgsql ")
t[0] = upNodo('token', 0, 0, graph_ref) | stm_language : DOLLAR DOLLAR LANGUAGE PLPGSQL | parser/fase2/team03/grammarReview.py | p_stm_language | JohnnyBro/tytus | 0 | python | def p_stm_language(t):
graph_ref = graph_node(str('stm_language'), [((str(t[1]) + ' ') + str(t[2])), t[3], t[4]], [])
addCad("**\\<STM_LANGUAGE>** ::= '$$' tLanguage tPlpgsql ")
t[0] = upNodo('token', 0, 0, graph_ref) | def p_stm_language(t):
graph_ref = graph_node(str('stm_language'), [((str(t[1]) + ' ') + str(t[2])), t[3], t[4]], [])
addCad("**\\<STM_LANGUAGE>** ::= '$$' tLanguage tPlpgsql ")
t[0] = upNodo('token', 0, 0, graph_ref)<|docstring|>stm_language : DOLLAR DOLLAR LANGUAGE PLPGSQL<|endoftext|> |
acacbd3de3618437f2839424524f0dc6666e195b802b42962a21ee5de361bbc4 | def p_stm_drop_function_0(t):
'stm_drop_function : DROP FUNCTION if_exists_opt ID PARA list_param_function_opt PARC mode_drop_function_opt\n | DROP FUNCTION if_exists_opt name_list '
if (len(t) == 9):
childsProduction = addNotNoneChild(t, [3, 6, 8])
graph_ref = grap... | stm_drop_function : DROP FUNCTION if_exists_opt ID PARA list_param_function_opt PARC mode_drop_function_opt
| DROP FUNCTION if_exists_opt name_list | parser/fase2/team03/grammarReview.py | p_stm_drop_function_0 | JohnnyBro/tytus | 0 | python | def p_stm_drop_function_0(t):
'stm_drop_function : DROP FUNCTION if_exists_opt ID PARA list_param_function_opt PARC mode_drop_function_opt\n | DROP FUNCTION if_exists_opt name_list '
if (len(t) == 9):
childsProduction = addNotNoneChild(t, [3, 6, 8])
graph_ref = grap... | def p_stm_drop_function_0(t):
'stm_drop_function : DROP FUNCTION if_exists_opt ID PARA list_param_function_opt PARC mode_drop_function_opt\n | DROP FUNCTION if_exists_opt name_list '
if (len(t) == 9):
childsProduction = addNotNoneChild(t, [3, 6, 8])
graph_ref = grap... |
3e89999a8c6a799256f5764bf430a8819c6bbb6172af1a6ef9f7dd53da7a7c73 | def p_name_list(t):
'name_list : name_list COMA ID\n | ID'
if (len(t) == 4):
lista = None
childsProduction = []
if (t[1] != None):
lista = t[1][0]
childsProduction.append(lista.graph_ref)
graph_ref = graph_node(str('name_list'), [list... | name_list : name_list COMA ID
| ID | parser/fase2/team03/grammarReview.py | p_name_list | JohnnyBro/tytus | 0 | python | def p_name_list(t):
'name_list : name_list COMA ID\n | ID'
if (len(t) == 4):
lista = None
childsProduction = []
if (t[1] != None):
lista = t[1][0]
childsProduction.append(lista.graph_ref)
graph_ref = graph_node(str('name_list'), [list... | def p_name_list(t):
'name_list : name_list COMA ID\n | ID'
if (len(t) == 4):
lista = None
childsProduction = []
if (t[1] != None):
lista = t[1][0]
childsProduction.append(lista.graph_ref)
graph_ref = graph_node(str('name_list'), [list... |
ee41ab102dac0326606baa066a5ce07215d11fbf037e0002e383093b82ec2658 | def p_mode_drop_function_opt(t):
'mode_drop_function_opt : CASCADE\n | RESTRICT\n | empty'
token = t.slice[1]
if (token.type == 'CASCADE'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<MODE_DROP_FUNCTION>** ::= tCascade ')
... | mode_drop_function_opt : CASCADE
| RESTRICT
| empty | parser/fase2/team03/grammarReview.py | p_mode_drop_function_opt | JohnnyBro/tytus | 0 | python | def p_mode_drop_function_opt(t):
'mode_drop_function_opt : CASCADE\n | RESTRICT\n | empty'
token = t.slice[1]
if (token.type == 'CASCADE'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<MODE_DROP_FUNCTION>** ::= tCascade ')
... | def p_mode_drop_function_opt(t):
'mode_drop_function_opt : CASCADE\n | RESTRICT\n | empty'
token = t.slice[1]
if (token.type == 'CASCADE'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<MODE_DROP_FUNCTION>** ::= tCascade ')
... |
36de6baf184e54c393adc704012c5a417e964c8287b5acd0437695fb84c0f22e | def p_stm_index(t):
'stm_index : CREATE unique_opt INDEX ID ON ID using_hash_opt PARA params_index PARC where_clause_opt '
childsProduction = addNotNoneChild(t, [2, 7, 9, 11])
graph_ref = graph_node(str('stm_index'), [t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10], t[11]], childsProduction)
... | stm_index : CREATE unique_opt INDEX ID ON ID using_hash_opt PARA params_index PARC where_clause_opt | parser/fase2/team03/grammarReview.py | p_stm_index | JohnnyBro/tytus | 0 | python | def p_stm_index(t):
' '
childsProduction = addNotNoneChild(t, [2, 7, 9, 11])
graph_ref = graph_node(str('stm_index'), [t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10], t[11]], childsProduction)
addCad('**\\<STM_INDEX>** ::= tCreate [\\<UNIQUE_OPT>] tIndex')
t[0] = upNodo(True, 0, 0, grap... | def p_stm_index(t):
' '
childsProduction = addNotNoneChild(t, [2, 7, 9, 11])
graph_ref = graph_node(str('stm_index'), [t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10], t[11]], childsProduction)
addCad('**\\<STM_INDEX>** ::= tCreate [\\<UNIQUE_OPT>] tIndex')
t[0] = upNodo(True, 0, 0, grap... |
59a04eb1493eeaa01962f4846a4b56409f3122a5da7bdbe68de253f172051d3a | def p_params_index(t):
'params_index : params_index COMA param_index\n | param_index'
token = t.slice[1]
if (token.type == 'params_index'):
childsProduction = addNotNoneChild(t, [1, 3])
graph_ref = graph_node(str('params_index'), [t[1], t[2], t[3]], childsProduction)
... | params_index : params_index COMA param_index
| param_index | parser/fase2/team03/grammarReview.py | p_params_index | JohnnyBro/tytus | 0 | python | def p_params_index(t):
'params_index : params_index COMA param_index\n | param_index'
token = t.slice[1]
if (token.type == 'params_index'):
childsProduction = addNotNoneChild(t, [1, 3])
graph_ref = graph_node(str('params_index'), [t[1], t[2], t[3]], childsProduction)
... | def p_params_index(t):
'params_index : params_index COMA param_index\n | param_index'
token = t.slice[1]
if (token.type == 'params_index'):
childsProduction = addNotNoneChild(t, [1, 3])
graph_ref = graph_node(str('params_index'), [t[1], t[2], t[3]], childsProduction)
... |
d42158310b552c989df03d84aefb743f17571a428b7573332c0f346ef61248d7 | def p_param_index_0(t):
'param_index : ID order_opt'
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('param_index'), [t[1], t[2]], childsProduction)
addCad('**\\<PARAM_INDEX>** ::= tId ')
t[0] = upNodo(True, 0, 0, graph_ref) | param_index : ID order_opt | parser/fase2/team03/grammarReview.py | p_param_index_0 | JohnnyBro/tytus | 0 | python | def p_param_index_0(t):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('param_index'), [t[1], t[2]], childsProduction)
addCad('**\\<PARAM_INDEX>** ::= tId ')
t[0] = upNodo(True, 0, 0, graph_ref) | def p_param_index_0(t):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('param_index'), [t[1], t[2]], childsProduction)
addCad('**\\<PARAM_INDEX>** ::= tId ')
t[0] = upNodo(True, 0, 0, graph_ref)<|docstring|>param_index : ID order_opt<|endoftext|> |
a69a3e354eea9eade37b00dd58d122181bf8d892bea1b05fc717d7a0c4e03085 | def p_param_index_1(t):
'param_index : ID order_opt NULLS FIRST\n | ID order_opt NULLS LAST'
token = t.slice[3]
if (token.type == 'FIRST'):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('param_index'), [t[1], t[2], ((str(t[3]) + ' ') + str(t[4]))],... | param_index : ID order_opt NULLS FIRST
| ID order_opt NULLS LAST | parser/fase2/team03/grammarReview.py | p_param_index_1 | JohnnyBro/tytus | 0 | python | def p_param_index_1(t):
'param_index : ID order_opt NULLS FIRST\n | ID order_opt NULLS LAST'
token = t.slice[3]
if (token.type == 'FIRST'):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('param_index'), [t[1], t[2], ((str(t[3]) + ' ') + str(t[4]))],... | def p_param_index_1(t):
'param_index : ID order_opt NULLS FIRST\n | ID order_opt NULLS LAST'
token = t.slice[3]
if (token.type == 'FIRST'):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('param_index'), [t[1], t[2], ((str(t[3]) + ' ') + str(t[4]))],... |
7f957f692690b4d7ac6e3bf3c244d3412bb56cbc4ec5f6611ecc36ec30f81ed3 | def p_param_index_2(t):
'param_index : expression'
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('param_index'), [t[1]], childsProduction)
addCad('**\\<PARAM_INDEX>** ::= \\<EXPRESSION>')
t[0] = upNodo(True, 0, 0, graph_ref) | param_index : expression | parser/fase2/team03/grammarReview.py | p_param_index_2 | JohnnyBro/tytus | 0 | python | def p_param_index_2(t):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('param_index'), [t[1]], childsProduction)
addCad('**\\<PARAM_INDEX>** ::= \\<EXPRESSION>')
t[0] = upNodo(True, 0, 0, graph_ref) | def p_param_index_2(t):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('param_index'), [t[1]], childsProduction)
addCad('**\\<PARAM_INDEX>** ::= \\<EXPRESSION>')
t[0] = upNodo(True, 0, 0, graph_ref)<|docstring|>param_index : expression<|endoftext|> |
5e5594fcecbc1194fc96c27b8000346faade8c739a9766de51428b0f9f8e306c | def p_order_opt(t):
'order_opt : DESC\n | ASC\n | empty'
token = t.slice[1]
if (token.type == 'DESC'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<ORDER_OPT>** ::= tDesc ')
t[0] = upNodo(True, 0, 0, graph_ref)
elif (token.type == 'ASC')... | order_opt : DESC
| ASC
| empty | parser/fase2/team03/grammarReview.py | p_order_opt | JohnnyBro/tytus | 0 | python | def p_order_opt(t):
'order_opt : DESC\n | ASC\n | empty'
token = t.slice[1]
if (token.type == 'DESC'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<ORDER_OPT>** ::= tDesc ')
t[0] = upNodo(True, 0, 0, graph_ref)
elif (token.type == 'ASC')... | def p_order_opt(t):
'order_opt : DESC\n | ASC\n | empty'
token = t.slice[1]
if (token.type == 'DESC'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<ORDER_OPT>** ::= tDesc ')
t[0] = upNodo(True, 0, 0, graph_ref)
elif (token.type == 'ASC')... |
3e4704cd90f61147d25e630a29f29b23c8ad6d1497fc96f107ab6ec7b91ead06 | def p_unique_opt(t):
'unique_opt : UNIQUE\n | empty'
token = t.slice[1]
if (token.type == 'UNIQUE'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<UNIQUE_OPT>** ::= tUnique ')
t[0] = upNodo(True, 0, 0, graph_ref)
else:
t[0] = None | unique_opt : UNIQUE
| empty | parser/fase2/team03/grammarReview.py | p_unique_opt | JohnnyBro/tytus | 0 | python | def p_unique_opt(t):
'unique_opt : UNIQUE\n | empty'
token = t.slice[1]
if (token.type == 'UNIQUE'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<UNIQUE_OPT>** ::= tUnique ')
t[0] = upNodo(True, 0, 0, graph_ref)
else:
t[0] = None | def p_unique_opt(t):
'unique_opt : UNIQUE\n | empty'
token = t.slice[1]
if (token.type == 'UNIQUE'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<UNIQUE_OPT>** ::= tUnique ')
t[0] = upNodo(True, 0, 0, graph_ref)
else:
t[0] = None<|docstring|>unique_... |
ca092e7a21c645b5b6f12c4b8429ff2c104cd38fd2cc19e3cb4fb541fb24ecf5 | def p_using_hash_opt(t):
'using_hash_opt : USING HASH\n | empty'
token = t.slice[1]
if (token.type == 'USING'):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<USING_HASH>** ::= tUsing tHash ')
t[0] = upNodo(True, 0, 0, graph_ref)
... | using_hash_opt : USING HASH
| empty | parser/fase2/team03/grammarReview.py | p_using_hash_opt | JohnnyBro/tytus | 0 | python | def p_using_hash_opt(t):
'using_hash_opt : USING HASH\n | empty'
token = t.slice[1]
if (token.type == 'USING'):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<USING_HASH>** ::= tUsing tHash ')
t[0] = upNodo(True, 0, 0, graph_ref)
... | def p_using_hash_opt(t):
'using_hash_opt : USING HASH\n | empty'
token = t.slice[1]
if (token.type == 'USING'):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<USING_HASH>** ::= tUsing tHash ')
t[0] = upNodo(True, 0, 0, graph_ref)
... |
12749af79d79daf44d392991411d47f6b1259b660af3a628730a259d3b953176 | def p_all_opt(t):
'all_opt : ALL\n | empty'
token = t.slice[1]
if (token.type == 'ALL'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<ALL_OPT>** ::= tAll ')
t[0] = upNodo(True, 0, 0, graph_ref)
else:
t[0] = None | all_opt : ALL
| empty | parser/fase2/team03/grammarReview.py | p_all_opt | JohnnyBro/tytus | 0 | python | def p_all_opt(t):
'all_opt : ALL\n | empty'
token = t.slice[1]
if (token.type == 'ALL'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<ALL_OPT>** ::= tAll ')
t[0] = upNodo(True, 0, 0, graph_ref)
else:
t[0] = None | def p_all_opt(t):
'all_opt : ALL\n | empty'
token = t.slice[1]
if (token.type == 'ALL'):
graph_ref = graph_node(str(t[1]))
addCad('**\\<ALL_OPT>** ::= tAll ')
t[0] = upNodo(True, 0, 0, graph_ref)
else:
t[0] = None<|docstring|>all_opt : ALL
| empty<|endoft... |
f25eae8c9f92c8ce2c5b52fe8f03c86f14ec10cc928b70919b240cf2260c737f | def p_stm_select(t):
'stm_select : SELECT distinct_opt list_names FROM table_list where_clause_opt group_clause_opt having_clause_opt order_by_opt limit_opt offset_opt\n | SELECT distinct_opt list_names '
if (len(t) == 4):
lista = None
childsProduction = addNotNoneChild(t, [2])... | stm_select : SELECT distinct_opt list_names FROM table_list where_clause_opt group_clause_opt having_clause_opt order_by_opt limit_opt offset_opt
| SELECT distinct_opt list_names | parser/fase2/team03/grammarReview.py | p_stm_select | JohnnyBro/tytus | 0 | python | def p_stm_select(t):
'stm_select : SELECT distinct_opt list_names FROM table_list where_clause_opt group_clause_opt having_clause_opt order_by_opt limit_opt offset_opt\n | SELECT distinct_opt list_names '
if (len(t) == 4):
lista = None
childsProduction = addNotNoneChild(t, [2])... | def p_stm_select(t):
'stm_select : SELECT distinct_opt list_names FROM table_list where_clause_opt group_clause_opt having_clause_opt order_by_opt limit_opt offset_opt\n | SELECT distinct_opt list_names '
if (len(t) == 4):
lista = None
childsProduction = addNotNoneChild(t, [2])... |
e74e06f5be5eba7152230e308b065cae36f3c0307db514f82e16849b0dd1594f | def p_distinct_opt(t):
'distinct_opt : not_opt DISTINCT\n | empty'
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('distinct_opt'), [t[1], t[2]], childsProduction)
addCad('**\\<DISTINCT_OPT>** ::= \\<NOT_OPT> tDistinct ')
... | distinct_opt : not_opt DISTINCT
| empty | parser/fase2/team03/grammarReview.py | p_distinct_opt | JohnnyBro/tytus | 0 | python | def p_distinct_opt(t):
'distinct_opt : not_opt DISTINCT\n | empty'
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('distinct_opt'), [t[1], t[2]], childsProduction)
addCad('**\\<DISTINCT_OPT>** ::= \\<NOT_OPT> tDistinct ')
... | def p_distinct_opt(t):
'distinct_opt : not_opt DISTINCT\n | empty'
if (len(t) == 3):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('distinct_opt'), [t[1], t[2]], childsProduction)
addCad('**\\<DISTINCT_OPT>** ::= \\<NOT_OPT> tDistinct ')
... |
8eb6649e109d5d9f05dce3ea82964ccd54958eba677a40d1440522fe884cd6f5 | def p_where_clause_opt(t):
'where_clause_opt : where_clause\n | empty'
token = t.slice[1]
if (token.type == 'where_clause'):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('where_clause_opt'), [t[1]], childsProduction)
addCad('**\\<WHERE_... | where_clause_opt : where_clause
| empty | parser/fase2/team03/grammarReview.py | p_where_clause_opt | JohnnyBro/tytus | 0 | python | def p_where_clause_opt(t):
'where_clause_opt : where_clause\n | empty'
token = t.slice[1]
if (token.type == 'where_clause'):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('where_clause_opt'), [t[1]], childsProduction)
addCad('**\\<WHERE_... | def p_where_clause_opt(t):
'where_clause_opt : where_clause\n | empty'
token = t.slice[1]
if (token.type == 'where_clause'):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('where_clause_opt'), [t[1]], childsProduction)
addCad('**\\<WHERE_... |
f87888ac797e9f985d1ea99a726c8af7b2aeb2a8a70e6cf658357d4c44105792 | def p_group_clause_opt(t):
'group_clause_opt : group_clause\n | empty'
token = t.slice[1]
if (token.type == 'group_clause'):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('group_clause_opt'), [t[1]], childsProduction)
addCad('**\\<GROUP_... | group_clause_opt : group_clause
| empty | parser/fase2/team03/grammarReview.py | p_group_clause_opt | JohnnyBro/tytus | 0 | python | def p_group_clause_opt(t):
'group_clause_opt : group_clause\n | empty'
token = t.slice[1]
if (token.type == 'group_clause'):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('group_clause_opt'), [t[1]], childsProduction)
addCad('**\\<GROUP_... | def p_group_clause_opt(t):
'group_clause_opt : group_clause\n | empty'
token = t.slice[1]
if (token.type == 'group_clause'):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('group_clause_opt'), [t[1]], childsProduction)
addCad('**\\<GROUP_... |
43c7bc9897d47283f6381e73b2f18b2331001ede8afbb7487faf241616c0a322 | def p_having_clause_opt(t):
'having_clause_opt : having_clause\n | empty'
token = t.slice[1]
if (token.type == 'having_clause'):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('having_clause_opt'), [t[1]], childsProduction)
addCad('**\\<HA... | having_clause_opt : having_clause
| empty | parser/fase2/team03/grammarReview.py | p_having_clause_opt | JohnnyBro/tytus | 0 | python | def p_having_clause_opt(t):
'having_clause_opt : having_clause\n | empty'
token = t.slice[1]
if (token.type == 'having_clause'):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('having_clause_opt'), [t[1]], childsProduction)
addCad('**\\<HA... | def p_having_clause_opt(t):
'having_clause_opt : having_clause\n | empty'
token = t.slice[1]
if (token.type == 'having_clause'):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('having_clause_opt'), [t[1]], childsProduction)
addCad('**\\<HA... |
a63386e1e84ba4d637f9bf75ab972b1149182ffc7354976d43079739fd62f1fd | def p_order_by_opt(t):
'order_by_opt : ORDER BY col_name\n | empty'
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [3])
graph_ref = graph_node(str('order_by_opt'), [t[1], t[2], t[3]], childsProduction)
addCad('**\\<ORDER_BY_OPT>** ::= tOrder tBy \\<COL_NAME> ... | order_by_opt : ORDER BY col_name
| empty | parser/fase2/team03/grammarReview.py | p_order_by_opt | JohnnyBro/tytus | 0 | python | def p_order_by_opt(t):
'order_by_opt : ORDER BY col_name\n | empty'
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [3])
graph_ref = graph_node(str('order_by_opt'), [t[1], t[2], t[3]], childsProduction)
addCad('**\\<ORDER_BY_OPT>** ::= tOrder tBy \\<COL_NAME> ... | def p_order_by_opt(t):
'order_by_opt : ORDER BY col_name\n | empty'
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [3])
graph_ref = graph_node(str('order_by_opt'), [t[1], t[2], t[3]], childsProduction)
addCad('**\\<ORDER_BY_OPT>** ::= tOrder tBy \\<COL_NAME> ... |
0f15e1a64726f6283736fefc137a387b89e07a71f8707175cc85dbfdbe92f338 | def p_limit_opt(t):
'limit_opt : LIMIT ENTERO\n | empty'
if (len(t) == 3):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<LIMIT_OPT>** ::= tLimit tEntero ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None | limit_opt : LIMIT ENTERO
| empty | parser/fase2/team03/grammarReview.py | p_limit_opt | JohnnyBro/tytus | 0 | python | def p_limit_opt(t):
'limit_opt : LIMIT ENTERO\n | empty'
if (len(t) == 3):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<LIMIT_OPT>** ::= tLimit tEntero ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None | def p_limit_opt(t):
'limit_opt : LIMIT ENTERO\n | empty'
if (len(t) == 3):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<LIMIT_OPT>** ::= tLimit tEntero ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None<|docstring... |
7a7c1f47280482d825c5c07c289ac94ccf4092d8252fafdb9254373dca771151 | def p_offset_opt(t):
'offset_opt : OFFSET ENTERO\n | empty'
if (len(t) == 3):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<OFFSET_OPT>** ::= tOffset tEntero ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None | offset_opt : OFFSET ENTERO
| empty | parser/fase2/team03/grammarReview.py | p_offset_opt | JohnnyBro/tytus | 0 | python | def p_offset_opt(t):
'offset_opt : OFFSET ENTERO\n | empty'
if (len(t) == 3):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<OFFSET_OPT>** ::= tOffset tEntero ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None | def p_offset_opt(t):
'offset_opt : OFFSET ENTERO\n | empty'
if (len(t) == 3):
graph_ref = graph_node(str(((str(t[1]) + ' ') + str(t[2]))))
addCad('**\\<OFFSET_OPT>** ::= tOffset tEntero ')
t[0] = upNodo('token', 0, 0, graph_ref)
else:
t[0] = None<|docs... |
ae5495de803fd702d2868580b28097bab4718059a06e5882552dcea249b44422 | def p_table(t):
'table : ID \n | ID AS TEXTO\n | ID AS ID\n '
if (len(t) == 2):
graph_ref = graph_node(str(str(t[1])))
addCad('**\\<TABLE>** ::= tIdentificador ')
t[0] = Table(t[1], t[1], None, t.slice[1].lineno, t.slice[1].lexpos, graph_... | table : ID
| ID AS TEXTO
| ID AS ID | parser/fase2/team03/grammarReview.py | p_table | JohnnyBro/tytus | 0 | python | def p_table(t):
'table : ID \n | ID AS TEXTO\n | ID AS ID\n '
if (len(t) == 2):
graph_ref = graph_node(str(str(t[1])))
addCad('**\\<TABLE>** ::= tIdentificador ')
t[0] = Table(t[1], t[1], None, t.slice[1].lineno, t.slice[1].lexpos, graph_... | def p_table(t):
'table : ID \n | ID AS TEXTO\n | ID AS ID\n '
if (len(t) == 2):
graph_ref = graph_node(str(str(t[1])))
addCad('**\\<TABLE>** ::= tIdentificador ')
t[0] = Table(t[1], t[1], None, t.slice[1].lineno, t.slice[1].lexpos, graph_... |
9b77090efed6baac699e53391a82328e31abded60ccd005b81acb4ca854084d9 | def p_table0(t):
'table : PARA stm_select PARC\n | PARA stm_select PARC AS TEXTO\n | PARA stm_select PARC AS ID\n '
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('table'), [t[1], t[2], t[3]], childsProdu... | table : PARA stm_select PARC
| PARA stm_select PARC AS TEXTO
| PARA stm_select PARC AS ID | parser/fase2/team03/grammarReview.py | p_table0 | JohnnyBro/tytus | 0 | python | def p_table0(t):
'table : PARA stm_select PARC\n | PARA stm_select PARC AS TEXTO\n | PARA stm_select PARC AS ID\n '
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('table'), [t[1], t[2], t[3]], childsProdu... | def p_table0(t):
'table : PARA stm_select PARC\n | PARA stm_select PARC AS TEXTO\n | PARA stm_select PARC AS ID\n '
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [2])
graph_ref = graph_node(str('table'), [t[1], t[2], t[3]], childsProdu... |
aa5deffc8fbe931185b2cf0ed3bef68e72f07c03c95c617f015dfda3b26418e2 | def p_stm_insert(t):
'stm_insert : INSERT INTO ID insert_ops'
childsProduction = addNotNoneChild(t, [4])
graph_ref = graph_node(str('stm_insert'), [t[1], t[2], t[3], t[4]], childsProduction)
addCad('**\\<STM_INSERT>** ::= tInsert tInto tIdentifier \\<INSERT_OPS> ')
token_insert = t.slice[1]
... | stm_insert : INSERT INTO ID insert_ops | parser/fase2/team03/grammarReview.py | p_stm_insert | JohnnyBro/tytus | 0 | python | def p_stm_insert(t):
childsProduction = addNotNoneChild(t, [4])
graph_ref = graph_node(str('stm_insert'), [t[1], t[2], t[3], t[4]], childsProduction)
addCad('**\\<STM_INSERT>** ::= tInsert tInto tIdentifier \\<INSERT_OPS> ')
token_insert = t.slice[1]
t[0] = InsertInto(t[3], t[4].column_list, ... | def p_stm_insert(t):
childsProduction = addNotNoneChild(t, [4])
graph_ref = graph_node(str('stm_insert'), [t[1], t[2], t[3], t[4]], childsProduction)
addCad('**\\<STM_INSERT>** ::= tInsert tInto tIdentifier \\<INSERT_OPS> ')
token_insert = t.slice[1]
t[0] = InsertInto(t[3], t[4].column_list, ... |
b122a4839952307bf8e1fbf7ec9abd7ce495d7831aba5ed867e3ffb04ffd0183 | def p_insert_ops(t):
'insert_ops : column_list_param_opt VALUES PARA exp_list PARC\n | column_list_param_opt stm_select'
if (len(t) == 6):
lista = None
childsProduction = addNotNoneChild(t, [1])
if (t[4] != None):
lista = t[4][0]
childsProdu... | insert_ops : column_list_param_opt VALUES PARA exp_list PARC
| column_list_param_opt stm_select | parser/fase2/team03/grammarReview.py | p_insert_ops | JohnnyBro/tytus | 0 | python | def p_insert_ops(t):
'insert_ops : column_list_param_opt VALUES PARA exp_list PARC\n | column_list_param_opt stm_select'
if (len(t) == 6):
lista = None
childsProduction = addNotNoneChild(t, [1])
if (t[4] != None):
lista = t[4][0]
childsProdu... | def p_insert_ops(t):
'insert_ops : column_list_param_opt VALUES PARA exp_list PARC\n | column_list_param_opt stm_select'
if (len(t) == 6):
lista = None
childsProduction = addNotNoneChild(t, [1])
if (t[4] != None):
lista = t[4][0]
childsProdu... |
458d9e722650077c66098793696a3a706ec82c3d9c151540a3a46b0412c6d3f9 | def p_table_list(t):
'table_list : table_list COMA table_ref \n | table_ref'
if (len(t) == 4):
lista = None
childsProduction = addNotNoneChild(t, [3])
if (t[1] != None):
lista = t[1][0]
childsProduction.append(lista.graph_ref)
graph_re... | table_list : table_list COMA table_ref
| table_ref | parser/fase2/team03/grammarReview.py | p_table_list | JohnnyBro/tytus | 0 | python | def p_table_list(t):
'table_list : table_list COMA table_ref \n | table_ref'
if (len(t) == 4):
lista = None
childsProduction = addNotNoneChild(t, [3])
if (t[1] != None):
lista = t[1][0]
childsProduction.append(lista.graph_ref)
graph_re... | def p_table_list(t):
'table_list : table_list COMA table_ref \n | table_ref'
if (len(t) == 4):
lista = None
childsProduction = addNotNoneChild(t, [3])
if (t[1] != None):
lista = t[1][0]
childsProduction.append(lista.graph_ref)
graph_re... |
7802f96d32fda48b741dc32432f1808d05488d8a05e914d97b1c4e5027ce62ee | def p_table_ref(t):
'table_ref : table NATURAL join_type JOIN table\n | table join_type JOIN table\n | table'
if (len(t) == 6):
childsProduction = addNotNoneChild(t, [1, 3, 5])
graph_ref = graph_node(str('table_ref'), [t[1], t[2], t[3], t[4], t[5]], child... | table_ref : table NATURAL join_type JOIN table
| table join_type JOIN table
| table | parser/fase2/team03/grammarReview.py | p_table_ref | JohnnyBro/tytus | 0 | python | def p_table_ref(t):
'table_ref : table NATURAL join_type JOIN table\n | table join_type JOIN table\n | table'
if (len(t) == 6):
childsProduction = addNotNoneChild(t, [1, 3, 5])
graph_ref = graph_node(str('table_ref'), [t[1], t[2], t[3], t[4], t[5]], child... | def p_table_ref(t):
'table_ref : table NATURAL join_type JOIN table\n | table join_type JOIN table\n | table'
if (len(t) == 6):
childsProduction = addNotNoneChild(t, [1, 3, 5])
graph_ref = graph_node(str('table_ref'), [t[1], t[2], t[3], t[4], t[5]], child... |
6ea3ee821488ed460d66684f291164f3063b9b4773c4bda03c26297bea345a46 | def p_join_type(t):
'join_type : outer_join_type \n | outer_join_type OUTER\n '
if (len(t) == 2):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('join_type'), [t[1]], childsProduction)
addCad('**\\<JOIN_TYPE>** ::= \\<OUT... | join_type : outer_join_type
| outer_join_type OUTER | parser/fase2/team03/grammarReview.py | p_join_type | JohnnyBro/tytus | 0 | python | def p_join_type(t):
'join_type : outer_join_type \n | outer_join_type OUTER\n '
if (len(t) == 2):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('join_type'), [t[1]], childsProduction)
addCad('**\\<JOIN_TYPE>** ::= \\<OUT... | def p_join_type(t):
'join_type : outer_join_type \n | outer_join_type OUTER\n '
if (len(t) == 2):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('join_type'), [t[1]], childsProduction)
addCad('**\\<JOIN_TYPE>** ::= \\<OUT... |
ef80c5259855ae16a69f2bca0cdbe93f7e0a7978c5920cb938ef730346d7440a | def p_join_type0(t):
'join_type : INNER\n '
graph_ref = graph_node(str(t[1]))
addCad('**\\<JOIN_TYPE>** ::= tInner ')
t[0] = upNodo('token', 0, 0, graph_ref) | join_type : INNER | parser/fase2/team03/grammarReview.py | p_join_type0 | JohnnyBro/tytus | 0 | python | def p_join_type0(t):
'\n '
graph_ref = graph_node(str(t[1]))
addCad('**\\<JOIN_TYPE>** ::= tInner ')
t[0] = upNodo('token', 0, 0, graph_ref) | def p_join_type0(t):
'\n '
graph_ref = graph_node(str(t[1]))
addCad('**\\<JOIN_TYPE>** ::= tInner ')
t[0] = upNodo('token', 0, 0, graph_ref)<|docstring|>join_type : INNER<|endoftext|> |
97ec4b744d7d9147e18ccd8e2b09b3a84baac790ed8f78ed837a7d563aa5f25b | def p_outer_join_type(t):
'outer_join_type : LEFT\n | RIGHT\n | FULL'
token = t.slice[1]
graph_ref = graph_node(str(t[1]))
addCad(('**\\<OUTER_JOIN_TYPE>** ::= ' + str(token.type)))
t[0] = upNodo('token', 0, 0, graph_ref) | outer_join_type : LEFT
| RIGHT
| FULL | parser/fase2/team03/grammarReview.py | p_outer_join_type | JohnnyBro/tytus | 0 | python | def p_outer_join_type(t):
'outer_join_type : LEFT\n | RIGHT\n | FULL'
token = t.slice[1]
graph_ref = graph_node(str(t[1]))
addCad(('**\\<OUTER_JOIN_TYPE>** ::= ' + str(token.type)))
t[0] = upNodo('token', 0, 0, graph_ref) | def p_outer_join_type(t):
'outer_join_type : LEFT\n | RIGHT\n | FULL'
token = t.slice[1]
graph_ref = graph_node(str(t[1]))
addCad(('**\\<OUTER_JOIN_TYPE>** ::= ' + str(token.type)))
t[0] = upNodo('token', 0, 0, graph_ref)<|docstring|>outer_join_type ... |
ff2db7d2febe94dc559f9d86e4f23f50121b4c7353b1230f826c9cc7d07082be | def p_list_names(t):
'list_names : list_names COMA names AS TEXTO\n | list_names COMA names AS ID\n | list_names COMA names\n | POR\n '
if (len(t) == 6):
lista = None
childsProduction = addNotNoneChild(t, [3])
... | list_names : list_names COMA names AS TEXTO
| list_names COMA names AS ID
| list_names COMA names
| POR | parser/fase2/team03/grammarReview.py | p_list_names | JohnnyBro/tytus | 0 | python | def p_list_names(t):
'list_names : list_names COMA names AS TEXTO\n | list_names COMA names AS ID\n | list_names COMA names\n | POR\n '
if (len(t) == 6):
lista = None
childsProduction = addNotNoneChild(t, [3])
... | def p_list_names(t):
'list_names : list_names COMA names AS TEXTO\n | list_names COMA names AS ID\n | list_names COMA names\n | POR\n '
if (len(t) == 6):
lista = None
childsProduction = addNotNoneChild(t, [3])
... |
e6fa4b6f1b6e17b447799801566a5f4e92f5049d3a72caf44d40a1b19c8dff42 | def p_list_names0(t):
'list_names : names AS TEXTO\n | names AS ID\n | names'
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('list_names'), [t[1], t[2], t[3]], childsProduction)
addCad('**\\<LIST_NAMES>** ::... | list_names : names AS TEXTO
| names AS ID
| names | parser/fase2/team03/grammarReview.py | p_list_names0 | JohnnyBro/tytus | 0 | python | def p_list_names0(t):
'list_names : names AS TEXTO\n | names AS ID\n | names'
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('list_names'), [t[1], t[2], t[3]], childsProduction)
addCad('**\\<LIST_NAMES>** ::... | def p_list_names0(t):
'list_names : names AS TEXTO\n | names AS ID\n | names'
if (len(t) == 4):
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('list_names'), [t[1], t[2], t[3]], childsProduction)
addCad('**\\<LIST_NAMES>** ::... |
08148c890b74de672e744d164e15fe7449ec49c9435956e5377246a1937f1735 | def p_names(t):
'names : expression\n | time_ops\n | case_clause\n '
token = t.slice[1]
cadena = str(token.type)
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('names'), [t[1]], childsProduction)
addCad((('**\\<NAME... | names : expression
| time_ops
| case_clause | parser/fase2/team03/grammarReview.py | p_names | JohnnyBro/tytus | 0 | python | def p_names(t):
'names : expression\n | time_ops\n | case_clause\n '
token = t.slice[1]
cadena = str(token.type)
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('names'), [t[1]], childsProduction)
addCad((('**\\<NAME... | def p_names(t):
'names : expression\n | time_ops\n | case_clause\n '
token = t.slice[1]
cadena = str(token.type)
childsProduction = addNotNoneChild(t, [1])
graph_ref = graph_node(str('names'), [t[1]], childsProduction)
addCad((('**\\<NAME... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.