Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Aunsiels/pyformlang
/ functions
Functions
945 in github.com/Aunsiels/pyformlang
⨍
Functions
945
◇
Types & classes
98
↓ 2 callers
Function
get_digits_enfa
An epsilon NFA to recognize digits
pyformlang/finite_automaton/tests/test_epsilon_nfa.py:667
↓ 2 callers
Function
get_enfa_example_for_word_generation
ENFA example for the word generation test
pyformlang/finite_automaton/tests/test_epsilon_nfa.py:776
↓ 2 callers
Function
get_example_rules
Duplicate example of rules
pyformlang/indexed_grammar/tests/test_indexed_grammar.py:356
↓ 2 callers
Method
get_intersection
Computes the intersection of two Epsilon NFAs Equivalent to: >>> automaton0 and automaton1 Parameters ----------
pyformlang/finite_automaton/epsilon_nfa.py:563
↓ 2 callers
Method
get_number_boxes
Size of set of boxes
pyformlang/rsa/recursive_automaton.py:60
↓ 2 callers
Method
get_parse_tree
Gives the parse tree for a sentence, if possible Parameters ---------- word : iterable of :class:`~pyformlang.cfg.Terminal`
pyformlang/fcfg/fcfg.py:91
↓ 2 callers
Method
get_prefix_language
Generates the prefix language of the CFL, i.e., the language of all prefixes of valid words Based on https://cs.uwaterloo.ca/~s4benda
pyformlang/cfg/cfg.py:1110
↓ 2 callers
Method
get_tree_str
Get a string representation of the tree behind the regex. Parameters ---------- depth : int The current
pyformlang/regular_expression/regex.py:257
↓ 2 callers
Method
intersection
Computes the intersection of the current indexed grammar with the \ other object Equivalent to -------------- >> i
pyformlang/indexed_grammar/indexed_grammar.py:335
↓ 2 callers
Method
is_llone_parsable
Checks whether the grammar can be parse with the LL(1) parser. Returns ------- is_parsable : bool
pyformlang/cfg/llone_parser.py:178
↓ 2 callers
Method
order_by_arborescence
Order the rules using the arborescence method. Parameters ---------- reverse : bool Boolean to know if we should
pyformlang/indexed_grammar/rule_ordering.py:88
↓ 2 callers
Method
order_by_core
Order the rules using the core numbers Parameters ---------- reverse : bool Boolean to know if we should reverse
pyformlang/indexed_grammar/rule_ordering.py:63
↓ 2 callers
Method
order_by_edges
Order using the number of edges. Parameters ---------- reverse : bool Boolean to know if we should reverse the or
pyformlang/indexed_grammar/rule_ordering.py:144
↓ 2 callers
Method
remove_epsilon
Removes the epsilon of a cfg Returns ---------- new_cfg : :class:`~pyformlang.cfg.CFG` The CFG without epsilons
pyformlang/cfg/cfg.py:256
↓ 2 callers
Method
remove_transition
Removes a transition to the function Parameters ---------- s_from : :class:`~pyformlang.finite_automaton.State`
pyformlang/finite_automaton/transition_function.py:90
↓ 2 callers
Method
remove_useless_rules
Remove useless rules in the grammar More precisely, we remove rules which do not contain only generating \ or reachable non termina
pyformlang/indexed_grammar/indexed_grammar.py:292
↓ 2 callers
Method
set_start_stack_symbol
Sets the start stack symbol to the automaton Parameters ---------- start_stack_symbol : :class:`~pyformlang.pda.StackSymbol`
pyformlang/pda/pda.py:117
↓ 2 callers
Method
set_start_state
Sets the start state to the automaton Parameters ---------- start_state : :class:`~pyformlang.pda.State` The sta
pyformlang/pda/pda.py:105
↓ 2 callers
Method
to_deterministic
Transforms the nfa into a dfa Returns ---------- dfa : :class:`~pyformlang.deterministic_finite_automaton\ .Determi
pyformlang/finite_automaton/nondeterministic_finite_automaton.py:116
↓ 2 callers
Method
to_deterministic
Transforms the current automaton into a dfa. Does nothing if the \ automaton is already deterministic. Returns ----------
pyformlang/finite_automaton/deterministic_finite_automaton.py:229
↓ 2 callers
Method
to_dict
Get the dictionary representation of the transition function. The \ keys of the dictionary are the source nodes. The items are \
pyformlang/finite_automaton/finite_automaton.py:696
↓ 2 callers
Method
to_networkx
Transform the current fst into a networkx graph Returns ------- graph : networkx.MultiDiGraph A network
pyformlang/fst/fst.py:462
↓ 2 callers
Method
to_symbol
Convert to a symbol
pyformlang/pda/utils.py:25
↓ 2 callers
Function
to_variable
Transformation into a variable
pyformlang/cfg/utils.py:7
↓ 2 callers
Method
union
Makes the union of two fst Parameters ---------- other_fst : :class:`~pyformlang.fst.FST` The other FST
pyformlang/fst/fst.py:314
↓ 2 callers
Method
write_as_dot
Write the parse tree in dot format into a file Parameters ---------- filename : str The filename where t
pyformlang/cfg/parse_tree.py:102
↓ 1 callers
Method
__init__
(self, states, symbols)
pyformlang/finite_automaton/deterministic_finite_automaton.py:24
↓ 1 callers
Method
__init__
(self)
pyformlang/finite_automaton/transition_function.py:38
↓ 1 callers
Method
__initialize_production_in_cfg
(self, production)
pyformlang/cfg/cfg.py:87
↓ 1 callers
Method
__predictor
(self, state, chart, processed)
pyformlang/fcfg/fcfg.py:64
↓ 1 callers
Method
_add_repetition
(self, regex_list)
pyformlang/regular_expression/python_regex.py:343
↓ 1 callers
Method
_begins_with_parenthesis_components
(self)
pyformlang/regular_expression/regex_reader.py:61
↓ 1 callers
Method
_check_is_valid_single_first_symbol
(self, first_symbol)
pyformlang/regular_expression/regex_reader.py:172
↓ 1 callers
Method
_compute_new_hash
(self)
pyformlang/cfg/variable.py:37
↓ 1 callers
Method
_compute_precedence
Add parenthesis for the first group in indicate precedence
pyformlang/regular_expression/regex_reader.py:95
↓ 1 callers
Method
_compute_precedent_when_not_kleene_nor_union
(self)
pyformlang/regular_expression/regex_reader.py:88
↓ 1 callers
Function
_create_feature_structure
(conditions, structure_variables, existing_references=None, feature_structure=None)
pyformlang/fcfg/feature_structure.py:334
↓ 1 callers
Method
_decompose_productions
Decompose productions
pyformlang/cfg/cfg.py:357
↓ 1 callers
Method
_duplication_processing
Processes a duplication rule Parameters ---------- rule : :class:`~pyformlang.indexed_grammar.DuplicationRule` Th
pyformlang/indexed_grammar/indexed_grammar.py:60
↓ 1 callers
Method
_escape_in_brackets
(self)
pyformlang/regular_expression/python_regex.py:389
↓ 1 callers
Method
_extract_consumption_rules_intersection
(self, rules, new_rules)
pyformlang/fst/fst.py:300
↓ 1 callers
Method
_extract_epsilon_transitions_intersection
(self, new_rules)
pyformlang/fst/fst.py:251
↓ 1 callers
Method
_extract_fst_delta_intersection
(self, new_rules)
pyformlang/fst/fst.py:241
↓ 1 callers
Method
_extract_fst_duplication_rules_intersection
(self, new_rules)
pyformlang/fst/fst.py:227
↓ 1 callers
Method
_extract_fst_epsilon_intersection
(self, new_rules)
pyformlang/fst/fst.py:235
↓ 1 callers
Method
_extract_indexed_grammar_rules_intersection
(self, rules, new_rules)
pyformlang/fst/fst.py:260
↓ 1 callers
Method
_extract_terminals_intersection
(self, rules, new_rules)
pyformlang/fst/fst.py:285
↓ 1 callers
Method
_find_previous_opening_parenthesis
(self, split_sequence)
pyformlang/regular_expression/python_regex.py:273
↓ 1 callers
Method
_found_no_union
(self, next_node)
pyformlang/regular_expression/regex_reader.py:78
↓ 1 callers
Method
_generate_all_rules
Generates the rules in the CFG conversion
pyformlang/pda/pda.py:384
↓ 1 callers
Method
_generate_length_one_rules
(self, s_from, s_to, ss_by)
pyformlang/pda/pda.py:418
↓ 1 callers
Method
_generates_all_terminals
(self)
pyformlang/cfg/cyk_table.py:86
↓ 1 callers
Method
_get_all_bodies
(production, state_p, state_r, states, cv_converter)
pyformlang/cfg/cfg.py:897
↓ 1 callers
Method
_get_all_bodies_from_state_and_transition
(self, state, transition)
pyformlang/pda/pda.py:379
↓ 1 callers
Method
_get_all_window_pairs
(self, start_window, end_window)
pyformlang/cfg/cyk_table.py:49
↓ 1 callers
Method
_get_bi_transitions
Internal method to compute the transition in the case of a \ simple automaton Returns start_to_start : str The t
pyformlang/finite_automaton/epsilon_nfa.py:468
↓ 1 callers
Method
_get_head_from_state_and_transition
(self, state, transition)
pyformlang/pda/pda.py:425
↓ 1 callers
Function
_get_index_to_extend
(current_expansion, left)
pyformlang/cfg/recursive_decent_parser.py:11
↓ 1 callers
Method
_get_len_out
Get the number of out edges of a rule (more exactly, the non \ terminal at its left. Parameters ---------- di_graph :
pyformlang/indexed_grammar/rule_ordering.py:129
↓ 1 callers
Method
_get_next_free_variable
(self, idx, prefix)
pyformlang/cfg/cfg.py:349
↓ 1 callers
Function
_get_parenthesis_value
(component)
pyformlang/regular_expression/regex_reader.py:203
↓ 1 callers
Method
_get_parse_tree_sub
(self, word, current_expansion, left=True)
pyformlang/cfg/recursive_decent_parser.py:85
↓ 1 callers
Method
_get_partition
(self)
pyformlang/finite_automaton/deterministic_finite_automaton.py:357
↓ 1 callers
Method
_get_previous_transitions
(self)
pyformlang/finite_automaton/deterministic_finite_automaton.py:287
↓ 1 callers
Method
_get_production
(self, current_symbol, count=0)
pyformlang/regular_expression/regex.py:313
↓ 1 callers
Method
_get_productions_with_only_single_terminals
Remove the terminals involved in a body of length more than 1
pyformlang/cfg/cfg.py:322
↓ 1 callers
Method
_get_reachable_states
Get all states which are reachable
pyformlang/finite_automaton/finite_automaton.py:658
↓ 1 callers
Function
_get_regex_componants
(regex)
pyformlang/regular_expression/regex_reader.py:235
↓ 1 callers
Method
_get_states_leading_to_final
Gets a set of states from which one of the final states can be reached.
pyformlang/finite_automaton/finite_automaton.py:629
↓ 1 callers
Method
_get_triggers
(self)
pyformlang/cfg/llone_parser.py:81
↓ 1 callers
Method
_get_triggers_follow_set
(self, first_set)
pyformlang/cfg/llone_parser.py:126
↓ 1 callers
Method
_get_windows
(self)
pyformlang/cfg/cyk_table.py:43
↓ 1 callers
Method
_initialize_cyk_table
(self)
pyformlang/cfg/cyk_table.py:64
↓ 1 callers
Method
_initialize_first_set
(self, triggers)
pyformlang/cfg/llone_parser.py:65
↓ 1 callers
Method
_initialize_follow_set
(self, first_set)
pyformlang/cfg/llone_parser.py:106
↓ 1 callers
Method
_initialize_production_from_start_in_to_cfg
(self, start)
pyformlang/pda/pda.py:431
↓ 1 callers
Method
_insert_or
(l_to_modify)
pyformlang/regular_expression/python_regex.py:264
↓ 1 callers
Method
_intersection_starting_rules
(cfg, other, cv_converter)
pyformlang/cfg/cfg.py:848
↓ 1 callers
Method
_intersection_when_terminal
(other_fst, production, cv_converter, states)
pyformlang/cfg/cfg.py:863
↓ 1 callers
Method
_intersection_when_two_non_terminals
(production, states, cv_converter)
pyformlang/cfg/cfg.py:879
↓ 1 callers
Method
_is_equivalent_to_minimal
(self_minimal, other_minimal)
pyformlang/finite_automaton/deterministic_finite_automaton.py:437
↓ 1 callers
Method
_is_repetition
(regex_list, idx)
pyformlang/regular_expression/python_regex.py:307
↓ 1 callers
Method
_is_surrounded_by_parenthesis
(self)
pyformlang/regular_expression/regex_reader.py:49
↓ 1 callers
Method
_match
(self, word, current_expansion, idx_word=0, idx_current_expansion=0)
pyformlang/cfg/recursive_decent_parser.py:65
↓ 1 callers
Method
_pre_process_input_regex_componants
(self)
pyformlang/regular_expression/regex_reader.py:38
↓ 1 callers
Function
_pre_process_regex
(regex: str)
pyformlang/regular_expression/regex_reader.py:211
↓ 1 callers
Function
_prepend_input_symbol_to_the_bodies
(bodies, transition)
pyformlang/pda/pda.py:665
↓ 1 callers
Method
_preprocess_brackets
(self)
pyformlang/regular_expression/python_regex.py:133
↓ 1 callers
Function
_preprocess_conditions
(conditions, start=0, end=-1)
pyformlang/fcfg/feature_structure.py:285
↓ 1 callers
Method
_preprocess_consumption_rules_generating
(self, generating_from)
pyformlang/indexed_grammar/indexed_grammar.py:253
↓ 1 callers
Method
_preprocess_negation
(bracket_content)
pyformlang/regular_expression/python_regex.py:257
↓ 1 callers
Method
_preprocess_optional
(self)
pyformlang/regular_expression/python_regex.py:368
↓ 1 callers
Method
_preprocess_positive_closure
(self)
pyformlang/regular_expression/python_regex.py:286
↓ 1 callers
Method
_preprocess_rules_generating
(self, duplication_pointer, generating, generating_from, to_process)
pyformlang/indexed_grammar/indexed_grammar.py:263
↓ 1 callers
Method
_process_to_enfa_concatenation
(self, s_from, s_to)
pyformlang/regular_expression/regex.py:240
↓ 1 callers
Method
_process_to_enfa_kleene_star
(self, s_from, s_to)
pyformlang/regular_expression/regex.py:217
↓ 1 callers
Method
_process_to_enfa_union
(self, s_from, s_to)
pyformlang/regular_expression/regex.py:227
↓ 1 callers
Method
_process_to_enfa_when_no_son
(self, s_from, s_to)
pyformlang/regular_expression/regex.py:195
↓ 1 callers
Method
_process_to_enfa_when_sons
(self, s_from, s_to)
pyformlang/regular_expression/regex.py:204
↓ 1 callers
Method
_process_transition_and_state_to_cfg
(self, productions,
pyformlang/pda/pda.py:358
← previous
next →
201–300 of 945, ranked by callers