def t_REAL(t):
    """(([0-9]+[.][0-9]*)|([.][0-9]+))([Ee][+-]?[0-9]+)?"""
    try:
        value = float(t.value)
    except ValueError:
        print('Error converting %s to real' % t.value)
    return t
