Example #1
0
        '\\': 2
    },
    # 4
    {
        automata.DEFAULT: 4,
        '"': 1,
        '\\': 2
    },
    # 5
    {
        automata.DEFAULT: 4,
        '"': 5,
        '\\': 2
    },
]
double3DFA = automata.NonGreedyDFA(states, accepts)

accepts = [False, False, False, False, False, True]
states = [
    # 0
    {
        automata.DEFAULT: 0,
        "'": 1,
        '\\': 2
    },
    # 1
    {
        automata.DEFAULT: 4,
        "'": 3,
        '\\': 2
    },
Example #2
0
        automata.DEFAULT: 4,
        '"': 5,
        '\\': 2
    },
    {
        automata.DEFAULT: 4,
        '"': 1,
        '\\': 2
    },
    {
        automata.DEFAULT: 4,
        '"': 5,
        '\\': 2
    },
]
double3DFA = automata.NonGreedyDFA(double3States, double3StatesAccepts)

single3StatesAccepts = [False, False, False, False, False, True]
single3States = [
    {
        automata.DEFAULT: 0,
        '\\': 2,
        "'": 1
    },
    {
        automata.DEFAULT: 4,
        '\\': 2,
        "'": 3
    },
    {
        automata.DEFAULT: 4