def p_expression_group_error(t):
 (line_start, line_end) = t.linespan(2)
 (pos_start, pos_end) = t.lexspan(2)
 print ('Syntax error at %d:%d to %d:%d' % (line_start, pos_start, line_end, pos_end))
 t[0] = 0

def p_expression_group_error ( t ) : ( line_start , line_end ) = t . linespan ( 2 ) ( pos_start , pos_end ) = t . lexspan ( 2 ) print ( 'Syntax error at %d:%d to %d:%d' % ( line_start , pos_start , line_end , pos_end ) ) t [ 0 ] = 0
expression : lparen error rparen .