def final_state2_c():
    state = State()
    state.can_be_one_symbol_word = False
    state.max_one_symbol_length = 0
    state.max_one_symbol_prefix = 0
    return state
Exemple #2
0
def second_few_symbols_word_state():
    state = State()
    state.can_be_one_symbol_word = False
    state.max_one_symbol_length = 0
    state.max_one_symbol_prefix = 2
    return state
def final_state2_a():
    state = State()
    state.can_be_one_symbol_word = True
    state.max_one_symbol_length = 1
    state.max_one_symbol_prefix = 1
    return state
Exemple #4
0
def one_symbol_word_zero_length_state():
    state = State()
    state.can_be_one_symbol_word = False
    state.max_one_symbol_length = 0
    state.max_one_symbol_prefix = 3
    return state
Exemple #5
0
def one_symbol_word_with_long_prefix_state():
    state = State()
    state.can_be_one_symbol_word = True
    state.max_one_symbol_length = 1
    state.max_one_symbol_prefix = 6
    return state
Exemple #6
0
def one_symbol_word_state():
    state = State()
    state.can_be_one_symbol_word = True
    state.max_one_symbol_length = 1
    state.max_one_symbol_prefix = 2
    return state
def result1():
    state = State()
    state.can_be_one_symbol_word = True
    state.max_one_symbol_length = 2
    state.max_one_symbol_prefix = 3
    return state
def result3():
    state = State()
    state.can_be_one_symbol_word = False
    state.max_one_symbol_length = 0
    state.max_one_symbol_prefix = 5
    return state