MCPcopy Create free account

hub / github.com/Aunsiels/pyformlang / functions

Functions945 in github.com/Aunsiels/pyformlang

↓ 1 callersMethod_process_transition_and_state_to_cfg_safe
(self, productions, state, transition)
pyformlang/pda/pda.py:369
↓ 1 callersMethod_production_process
Processes a production rule Parameters ---------- rule : :class:`~pyformlang.indexed_grammar.ProductionRule` The
pyformlang/indexed_grammar/indexed_grammar.py:100
↓ 1 callersMethod_propagate_in_cyk_table
(self)
pyformlang/cfg/cyk_table.py:55
↓ 1 callersMethod_read_line
(cls, line, productions, terminals, variables)
pyformlang/cfg/cfg.py:1069
↓ 1 callersMethod_remove_state
Removes a given state from the epsilon NFA CAREFUL: This method modifies the current automaton, for internal usage only! Th
pyformlang/finite_automaton/epsilon_nfa.py:804
↓ 1 callersMethod_remove_useless_extreme_parenthesis_from_componants
( self)
pyformlang/regular_expression/regex_reader.py:43
↓ 1 callersMethod_replace_shortcuts
(self)
pyformlang/regular_expression/python_regex.py:409
↓ 1 callersFunction_scanner
(state, chart, processed)
pyformlang/fcfg/fcfg.py:191
↓ 1 callersMethod_separate
(self)
pyformlang/regular_expression/python_regex.py:117
↓ 1 callersMethod_set_and_get_final_state_in_enfa
(self)
pyformlang/regular_expression/regex.py:164
↓ 1 callersMethod_set_and_get_initial_state_in_enfa
(self)
pyformlang/regular_expression/regex.py:174
↓ 1 callersMethod_set_cyk_table
(self)
pyformlang/cfg/cyk_table.py:39
↓ 1 callersMethod_set_index_state
Set the state index
pyformlang/pda/cfg_variable_converter.py:33
↓ 1 callersMethod_set_index_symbol
Set the symbol index
pyformlang/pda/cfg_variable_converter.py:46
↓ 1 callersMethod_set_next_end_group_and_node
(self)
pyformlang/regular_expression/regex_reader.py:105
↓ 1 callersMethod_set_productions_by_body
(self)
pyformlang/cfg/cyk_table.py:30
↓ 1 callersMethod_setup_empty_regex
(self)
pyformlang/regular_expression/regex_reader.py:152
↓ 1 callersMethod_setup_from_regex_componants
(self)
pyformlang/regular_expression/regex_reader.py:160
↓ 1 callersMethod_setup_non_trivial_regex
(self)
pyformlang/regular_expression/regex_reader.py:133
↓ 1 callersMethod_setup_one_symbol_regex
(self)
pyformlang/regular_expression/regex_reader.py:155
↓ 1 callersMethod_setup_precedence
(self)
pyformlang/regular_expression/regex_reader.py:72
↓ 1 callersMethod_setup_precedence_when_not_trivial
(self)
pyformlang/regular_expression/regex_reader.py:64
↓ 1 callersMethod_setup_sons
(self)
pyformlang/regular_expression/regex_reader.py:176
↓ 1 callersMethodadd_production
Add the production rule: left[sigma] -> right[prod sigma] Parameters ----------- left : any The left
pyformlang/indexed_grammar/rules.py:166
↓ 1 callersMethodadd_state
Add a state Parameters ---------- state : str The state to add idx : int The index of
pyformlang/fst/fst.py:557
↓ 1 callersMethodadd_symbol
Add a symbol Parameters ----------- symbol : :class:`~pyformlang.finite_automaton.Symbol` The symbol Ex
pyformlang/finite_automaton/finite_automaton.py:375
↓ 1 callersMethodadd_transition
Add a transition to the function Parameters ---------- s_from : :class:`~pyformlang.pda.State` The starting symb
pyformlang/pda/transition_function.py:30
↓ 1 callersMethodadd_transitions
Adds several transitions Parameters ---------- transitions : Transitions as they would be given to add_t
pyformlang/pda/pda.py:203
↓ 1 callersFunctionaddrec_bis
addrec_bis Optimized version of addrec :param l_sets: a list containing tuples (C, M) where: * C is a non-terminal on the left of a co
pyformlang/indexed_grammar/indexed_grammar.py:396
↓ 1 callersFunctionaddrec_ter
addrec Explores all possible combination of consumption rules to mark a production rule. :param l_sets: a list containing tuples (C, M) wh
pyformlang/indexed_grammar/indexed_grammar.py:418
↓ 1 callersMethodconcatenate
Concatenates a regular expression with an other one. Equivalent to: >>> regex0 + regex1 Parameters ------
pyformlang/regular_expression/regex.py:399
↓ 1 callersMethodconcatenate
Makes the concatenation of two fst Parameters ---------- other_fst : :class:`~pyformlang.fst.FST` The oth
pyformlang/fst/fst.py:377
↓ 1 callersMethodconcatenate
Makes the concatenation of two regexable objects Parameters ---------- other : :class:`~pyformlang.finite_automaton.Regexabl
pyformlang/finite_automaton/regexable.py:39
↓ 1 callersMethodcontains
Check containment
pyformlang/finite_automaton/hopcroft_processing_list.py:24
↓ 1 callersMethoddelete
Delete an element
pyformlang/finite_automaton/doubly_linked_list.py:26
↓ 1 callersMethodf_parameter
Gets the symbol which is consumed Returns ---------- f : any The symbol being consumed by the rule
pyformlang/indexed_grammar/consumption_rule.py:50
↓ 1 callersMethodfrom_networkx
Import a networkx graph into a PDA. \ The imported graph requires to have the good format, i.e. to come \ from the function t
pyformlang/pda/pda.py:604
↓ 1 callersMethodfrom_networkx
Import a networkx graph into an finite state transducer. \ The imported graph requires to have the good format, i.e. to come \
pyformlang/fst/fst.py:497
↓ 1 callersMethodfrom_networkx
Import a networkx graph into an finite state automaton. \ The imported graph requires to have the good format, i.e. to come \
pyformlang/finite_automaton/finite_automaton.py:499
↓ 1 callersMethodfrom_string
Read a regex from a string Parameters ---------- regex_str : str A regular expression Returns
pyformlang/regular_expression/regex_reader.py:179
↓ 1 callersMethodget_cfg_rules
Gets the rules for a context-free grammar to represent the \ operator
pyformlang/regular_expression/regex_objects.py:47
↓ 1 callersMethodget_closure
Gets the closure of the CFG (*) Returns ---------- new_cfg : :class:`~pyformlang.cfg.CFG` The closure of the cur
pyformlang/cfg/cfg.py:622
↓ 1 callersFunctionget_cyclic_dfa_example
Gets DFA example with several cycles on path to final
pyformlang/finite_automaton/tests/test_deterministic_finite_automaton.py:374
↓ 1 callersFunctionget_cyclic_nfa_example
Gets NFA example with several cycles on path to final
pyformlang/finite_automaton/tests/test_nondeterministic_finite_automaton.py:199
↓ 1 callersFunctionget_dfa_example_for_word_generation
DFA example for the word generation test
pyformlang/finite_automaton/tests/test_deterministic_finite_automaton.py:353
↓ 1 callersFunctionget_dfa_example_without_accepted_words
DFA example accepting no words
pyformlang/finite_automaton/tests/test_deterministic_finite_automaton.py:389
↓ 1 callersMethodget_edges
Gets the edges Returns ---------- edges : generator of (:class:`~pyformlang.finite_automaton.State`, \ :class:`~
pyformlang/finite_automaton/nondeterministic_transition_function.py:173
↓ 1 callersFunctionget_enfa_example0_bis
A non minimal NFA, equivalent to example0
pyformlang/finite_automaton/tests/test_epsilon_nfa.py:726
↓ 1 callersFunctionget_epsilon_cycle_enfa_example
ENFA example with an epsilon cycle
pyformlang/finite_automaton/tests/test_epsilon_nfa.py:826
↓ 1 callersFunctionget_example0_bis
Gives a dfa
pyformlang/finite_automaton/tests/test_deterministic_finite_automaton.py:327
↓ 1 callersFunctionget_example_non_minimal
A non minimal example a.a*.b
pyformlang/finite_automaton/tests/test_epsilon_nfa.py:749
↓ 1 callersMethodget_groups
Get the groups
pyformlang/finite_automaton/partition.py:51
↓ 1 callersMethodget_key
Get the key of the state
pyformlang/fcfg/state.py:23
↓ 1 callersFunctionget_nfa_example_for_word_generation
Gets Nondeterministic Finite Automaton \ example for the word generation test.
pyformlang/finite_automaton/tests/test_nondeterministic_finite_automaton.py:162
↓ 1 callersFunctionget_nfa_example_with_duplicates
Gets NFA example with duplicate word chains
pyformlang/finite_automaton/tests/test_nondeterministic_finite_automaton.py:183
↓ 1 callersFunctionget_nfa_example_with_final_state_at_start
Gets NFA example with final state at start
pyformlang/finite_automaton/tests/test_nondeterministic_finite_automaton.py:216
↓ 1 callersFunctionget_nfa_example_with_start_state_at_the_end
Gets NFA example with start state at the end
pyformlang/finite_automaton/tests/test_nondeterministic_finite_automaton.py:231
↓ 1 callersMethodget_parse_tree
Get a parse tree for a given word Parameters ---------- word : list The word to pars
pyformlang/cfg/recursive_decent_parser.py:35
↓ 1 callersMethodget_positive_closure
Gets the positive closure of the CFG (+) Returns ---------- new_cfg : :class:`~pyformlang.cfg.CFG` The positive
pyformlang/cfg/cfg.py:641
↓ 1 callersFunctionget_regex_sub
Combines the transitions in the regex simple function
pyformlang/finite_automaton/epsilon_nfa.py:933
↓ 1 callersMethodget_str_repr
The string representation of the node Parameters ---------- sons_repr : iterable of str The sons represe
pyformlang/regular_expression/regex_objects.py:30
↓ 1 callersMethodget_suffix_language
Generates the suffix language of the CFL, i.e., the language containing all suffixes of valid words
pyformlang/cfg/cfg.py:1155
↓ 1 callersFunctionget_temp
Gets a temp values in the computation of the simple automaton regex
pyformlang/finite_automaton/epsilon_nfa.py:905
↓ 1 callersMethodget_transitions_from
Gets transitions from the given state
pyformlang/finite_automaton/nondeterministic_transition_function.py:205
↓ 1 callersMethodget_valid_sets
Get the valid sets
pyformlang/finite_automaton/partition.py:34
↓ 1 callersMethodis_consumption
Whether the rule is a consumption rule or not Returns ---------- is_consumption : bool Whether the rule is a cons
pyformlang/indexed_grammar/reduced_rule.py:16
↓ 1 callersMethodis_consumption
Whether the rule is a consumption rule or not Returns ---------- is_consumption : bool Whether the rule is a cons
pyformlang/indexed_grammar/consumption_rule.py:39
↓ 1 callersMethodis_duplication
Whether the rule is a duplication rule or not Returns ---------- is_duplication : bool Whether the rule is a dupl
pyformlang/indexed_grammar/duplication_rule.py:40
↓ 1 callersMethodis_empty
Check if empty
pyformlang/finite_automaton/hopcroft_processing_list.py:20
↓ 1 callersMethodis_equals_to
Check whether two recursive automata are equals by boxes. Not equivalency in terms of formal languages theory, just mapping boxes
pyformlang/rsa/recursive_automaton.py:161
↓ 1 callersMethodis_equivalent_to
Check whether two boxes are equivalent Parameters ---------- other : :class:`~pyformlang.rsa.Box` A sequence of
pyformlang/rsa/box.py:80
↓ 1 callersMethodis_production
Whether the rule is a production rule or not Returns ---------- is_production : bool Whether the rule is a produc
pyformlang/indexed_grammar/production_rule.py:37
↓ 1 callersMethodis_valid_and_get
Check if valid and get
pyformlang/pda/cfg_variable_converter.py:84
↓ 1 callersMethodkleene_star
Computes the kleene star of the FST Returns ------- fst_star : :class:`~pyformlang.fst.FST` A FST repres
pyformlang/fst/fst.py:430
↓ 1 callersMethodkleene_star
Makes the kleene star of the current regexable object Returns ---------- enfa : :class:`~pyformlang.finite_automaton.Epsilon
pyformlang/finite_automaton/regexable.py:57
↓ 1 callersMethodmove_to_new_class
Move elements to a new class
pyformlang/finite_automaton/partition.py:27
↓ 1 callersMethodnext_is_variable
Check if the next symbol to process is a variable
pyformlang/fcfg/state.py:31
↓ 1 callersMethodnext_is_word
Check if the next symbol matches a given word
pyformlang/fcfg/state.py:35
↓ 1 callersMethodorder_random
The random ordering Returns ---------- new_rules : iterable of \ :class:`~pyformlang.indexed_grammar.ReducedRule`
pyformlang/indexed_grammar/rule_ordering.py:165
↓ 1 callersMethodremove_epsilon_transitions
Removes the epsilon transitions from the automaton Returns ---------- dfa : :class:`~pyformlang.finite_automaton.\ Nondeter
pyformlang/finite_automaton/epsilon_nfa.py:254
↓ 1 callersFunctionremove_nullable_production
Get all combinations of productions rules after removing nullable
pyformlang/cfg/utils_cfg.py:27
↓ 1 callersFunctionremove_nullable_production_sub
Recursive sub function to remove nullable objects
pyformlang/cfg/utils_cfg.py:11
↓ 1 callersMethodremove_production
Remove the production rule: left[sigma] -> right[prod sigma] Parameters ----------- left : any The le
pyformlang/indexed_grammar/rules.py:147
↓ 1 callersMethodreverse
Compute the reversed EpsilonNFA Equivalent to: >> ~automaton Returns --------- enfa : :class:`~pyformlang
pyformlang/finite_automaton/epsilon_nfa.py:701
↓ 1 callersMethodset_valid
Set valid
pyformlang/pda/cfg_variable_converter.py:77
↓ 1 callersMethodto_deterministic
Turns the automaton into a deterministic one
pyformlang/finite_automaton/finite_automaton.py:678
↓ 1 callersMethodto_dict
Get the transitions of the PDA as a dictionary Returns ------- transitions : dict The transitions
pyformlang/pda/pda.py:557
↓ 1 callersMethodto_networkx
Transforms the tree into a Networkx Directed Graph Returns ------- tree : networkx.Digraph The tree in N
pyformlang/cfg/parse_tree.py:76
↓ 1 callersMethodto_subgraph_dot
Creates a named subgraph representing a box
pyformlang/rsa/box.py:31
↓ 1 callersMethodto_text
(self)
pyformlang/cfg/epsilon.py:13
↓ 1 callersMethodunion
Makes the union with another regex. Equivalent to: >>> regex0 or regex1 Parameters ---------- oth
pyformlang/regular_expression/regex.py:330
↓ 1 callersMethodwrite_as_dot
Write the PDA in dot format into a file Parameters ---------- filename : str The filename where to write
pyformlang/pda/pda.py:652
↓ 1 callersMethodwrite_as_dot
Write the FST in dot format into a file Parameters ---------- filename : str The filename where to write
pyformlang/fst/fst.py:537
↓ 1 callersMethodwrite_as_dot
Write the automaton in dot format into a file Parameters ---------- filename : str The filename where to
pyformlang/finite_automaton/finite_automaton.py:547
Method__add__
Makes the concatenation of two CFGs Parameters ---------- other : :class:`~pyformlang.cfg.CFG` The other CFG to
pyformlang/cfg/cfg.py:607
Method__add__
Concatenates a regular expression with an other one. Parameters ---------- other : :class:`~pyformlang.regular_expre
pyformlang/regular_expression/regex.py:439
Method__add__
Makes the concatenation of two fst Parameters ---------- other : :class:`~pyformlang.fst.FST` The other F
pyformlang/fst/fst.py:408
Method__and__
Computes the intersection of the current indexed grammar with the other object Parameters ---------- other : any
pyformlang/indexed_grammar/indexed_grammar.py:366
Method__and__
Gives the intersection of the current CFG with an other object Parameters ---------- other : any The other objec
pyformlang/cfg/cfg.py:907
Method__and__
Gets the intersection of the current PDA with something else Equivalent to: >> pda and regex Parameters -------
pyformlang/pda/pda.py:533
← previousnext →301–400 of 945, ranked by callers