Statement : StatementWithoutTerminator Terminator

def p_Statement(p):
    '''
    Statement : StatementWithoutTerminator Terminator
    '''
    if len(p) < 3:
        term = Terminator('')
    else:
        term = p[2]
    p[0] = Statement(p[1], term)