src/parser.py
def p_for_expression(p):
	'statement : FOR expression TO expression COLON'
	if p[2] < p[4]:
		output_code.append("for(int i = " + str(p[2]) + "; i < " + str(p[4]) + "; i++ ){")
	else:
		output_code.append("for(int i = " + str(p[2]) + "; i > " + str(p[4]) + "; i-- ){")
statement : FOR expression TO expression COLON
statement : FOR expression TO expression COLON
statement : FOR expression TO expression COLON
def p_for_expression(p):
	if p[2] < p[4]:
		output_code.append("for(int i = " + str(p[2]) + "; i < " + str(p[4]) + "; i++ ){")
	else:
		output_code.append("for(int i = " + str(p[2]) + "; i > " + str(p[4]) + "; i-- ){")
def p_for_expression ( p ) : if p [ 2 ] < p [ 4 ] : output_code . append ( "for(int i = " + str ( p [ 2 ] ) + "; i < " + str ( p [ 4 ] ) + "; i++ ){" ) else : output_code . append ( "for(int i = " + str ( p [ 2 ] ) + "; i > " + str ( p [ 4 ] ) + "; i-- ){" )
statement : FOR expression TO expression COLON
statement : FOR expression TO expression COLON
'statement : FOR expression TO expression COLON'
p