Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Aunsiels/pyformlang
/ types & classes
Types & classes
98 in github.com/Aunsiels/pyformlang
⨍
Functions
945
◇
Types & classes
98
↓ 274 callers
Class
Terminal
A terminal in a CFG
pyformlang/cfg/terminal.py:6
↓ 239 callers
Class
Variable
An variable in a CFG Parameters ----------- value : any The value of the variable
pyformlang/cfg/variable.py:7
↓ 179 callers
Class
Symbol
A symbol in a finite automaton Parameters ---------- value : any The value of the symbol Examples ---------- >>> fr
pyformlang/finite_automaton/symbol.py:9
↓ 169 callers
Class
Production
A production or rule of a CFG Parameters ---------- head : :class:`~pyformlang.cfg.Variable` The head of the production body
pyformlang/cfg/production.py:10
↓ 155 callers
Class
State
A state in a finite automaton Parameters ---------- value : any The value of the state Examples ---------- >>> from
pyformlang/finite_automaton/state.py:9
↓ 119 callers
Class
FeatureStructure
The feature structure containing constraints Parameters ---------- value : Any, optional The value of the feature, if defined
pyformlang/fcfg/feature_structure.py:17
↓ 86 callers
Class
Regex
Represents a regular expression. Pyformlang implements the operators of textbooks, which deviate slightly \ from the operators in Pytho
pyformlang/regular_expression/regex.py:16
↓ 59 callers
Class
ConsumptionRule
Contains a representation of a consumption rule, i.e. a rule of the \ form: C[ r sigma] -> B[sigma] Parameters ----------
pyformlang/indexed_grammar/consumption_rule.py:11
↓ 57 callers
Class
CFG
A class representing a context free grammar Parameters ---------- variables : set of :class:`~pyformlang.cfg.Variable`, optional
pyformlang/cfg/cfg.py:41
↓ 47 callers
Class
DuplicationRule
Represents a duplication rule, i.e. a rule of the form: A[sigma] -> B[sigma] C[sigma] Parameters ---------- left_term : any
pyformlang/indexed_grammar/duplication_rule.py:10
↓ 46 callers
Class
Epsilon
An epsilon terminal
pyformlang/cfg/epsilon.py:6
↓ 44 callers
Class
EndRule
Represents an end rule, i.e. a rule of the form: A[sigma] -> a Parameters ----------- left : any The non-terminal on the
pyformlang/indexed_grammar/end_rule.py:10
↓ 41 callers
Class
Epsilon
An epsilon transition Examples -------- >>> epsilon = Epsilon()
pyformlang/finite_automaton/epsilon.py:8
↓ 37 callers
Class
ProductionRule
Represents a production rule, i.e. a rule of the form: A[sigma] -> B[r sigma] Parameters ---------- left : any The non-te
pyformlang/indexed_grammar/production_rule.py:10
↓ 34 callers
Class
PythonRegex
Represents a regular expression as used in Python. It adds the following features to the basic regex: * Set of characters with [] * Inv
pyformlang/regular_expression/python_regex.py:58
↓ 33 callers
Class
EpsilonNFA
Represents an epsilon NFA Parameters ---------- states : set of :class:`~pyformlang.finite_automaton.State`, optional A finite
pyformlang/finite_automaton/epsilon_nfa.py:20
↓ 27 callers
Class
DeterministicFiniteAutomaton
Represents a deterministic finite automaton This class represents a deterministic finite automaton. Parameters ---------- states :
pyformlang/finite_automaton/deterministic_finite_automaton.py:51
↓ 25 callers
Class
Epsilon
An epsilon symbol
pyformlang/pda/epsilon.py:6
↓ 24 callers
Class
IndexedGrammar
Describes an indexed grammar. Parameters ---------- rules : :class:`~pyformlang.indexed_grammar.Rules` The rules of the grammar,
pyformlang/indexed_grammar/indexed_grammar.py:14
↓ 24 callers
Class
Rules
Store a set of rules and manipulate them Parameters ---------- rules : iterable of :class:`~pyformlang.indexed_grammar.ReducedRule`
pyformlang/indexed_grammar/rules.py:13
↓ 24 callers
Class
StackSymbol
A StackSymbol in a pushdown automaton Parameters ---------- value : any The value of the state
pyformlang/pda/stack_symbol.py:4
↓ 24 callers
Class
Symbol
A Symbol in a pushdown automaton Parameters ---------- value : any The value of the state
pyformlang/pda/symbol.py:4
↓ 23 callers
Class
State
A State in a pushdown automaton Parameters ---------- value : any The value of the state
pyformlang/pda/state.py:4
↓ 21 callers
Class
PDA
Representation of a pushdown automaton Parameters ---------- states : set of :class:`~pyformlang.pda.State`, optional A finite s
pyformlang/pda/pda.py:35
↓ 19 callers
Class
FeatureProduction
A feature production or rule of a FCFG Parameters ---------- head : :class:`~pyformlang.cfg.Variable` The head of the production
pyformlang/fcfg/feature_production.py:9
↓ 14 callers
Class
FST
Representation of a Finite State Transducer
pyformlang/fst/fst.py:12
↓ 13 callers
Class
LLOneParser
A LL(1) parser Parameters ---------- cfg : :class:`~pyformlang.cfg.CFG` A context-free Grammar
pyformlang/cfg/llone_parser.py:12
↓ 12 callers
Class
NondeterministicFiniteAutomaton
Represents a nondeterministic finite automaton This class represents a nondeterministic finite automaton, where epsilon \ transition are for
pyformlang/finite_automaton/nondeterministic_finite_automaton.py:14
↓ 9 callers
Class
ParseTree
A parse tree
pyformlang/cfg/parse_tree.py:9
↓ 9 callers
Class
TransitionFunction
A transition function in a finite automaton. This is a deterministic transition function. Attributes ---------- _transitions : dict
pyformlang/finite_automaton/transition_function.py:18
↓ 7 callers
Class
Box
Represents a box for recursive automaton This class represents a box for recursive automaton Parameters ---------- enfa : :class:`~
pyformlang/rsa/box.py:11
↓ 7 callers
Class
NondeterministicTransitionFunction
A nondeterministic transition function in a finite automaton. The difference with a deterministic transition is that the return value is a s
pyformlang/finite_automaton/nondeterministic_transition_function.py:11
↓ 6 callers
Class
State
For internal usage
pyformlang/fcfg/state.py:10
↓ 4 callers
Class
CYKNode
A node in the CYK table
pyformlang/cfg/cyk_table.py:112
↓ 4 callers
Class
MisformedRegexError
Error for misformed regex
pyformlang/regular_expression/regex_objects.py:215
↓ 4 callers
Class
RecursiveAutomaton
Represents a recursive automaton This class represents a recursive automaton. Parameters ---------- start_box : :class:`~pyformlang
pyformlang/rsa/recursive_automaton.py:15
↓ 2 callers
Class
CYKTable
A CYK table Parameters ---------- cfg : A context-free grammar word : iterable of Terminals The word from which we const
pyformlang/cfg/cyk_table.py:8
↓ 2 callers
Class
Concatenation
Represents a concatenation
pyformlang/regular_expression/regex_objects.py:130
↓ 2 callers
Class
DoublyLinkedNode
Represents doubly linked list of nodes from a doubly linked list
pyformlang/finite_automaton/doubly_linked_node.py:4
↓ 2 callers
Class
FCFG
A class representing a feature context-free grammar Parameters ---------- variables : set of :class:`~pyformlang.cfg.Variable`, optional
pyformlang/fcfg/fcfg.py:14
↓ 2 callers
Class
FSTStateRemaining
Class for remaining the states in FST
pyformlang/fst/fst.py:550
↓ 2 callers
Class
PDAObjectCreator
Creates Objects for a PDA
pyformlang/cfg/pda_object_creator.py:7
↓ 2 callers
Class
PDAObjectCreator
A Object in a PDA
pyformlang/pda/utils.py:9
↓ 2 callers
Class
ParsingException
When there is a problem during parsing.
pyformlang/fcfg/feature_structure.py:281
↓ 2 callers
Class
RecursiveDecentParser
A recursive Top-Down parser Parameters ---------- cfg : :class:`~pyformlang.cfg.CFG` A context-free Gram
pyformlang/cfg/recursive_decent_parser.py:21
↓ 2 callers
Class
SetQueue
A queue with non duplicate elements
pyformlang/cfg/set_queue.py:4
↓ 2 callers
Class
StateProcessed
For internal usage
pyformlang/fcfg/state.py:40
↓ 2 callers
Class
Symbol
Represents a symbol Parameters ---------- value : str The value of the symbol
pyformlang/regular_expression/regex_objects.py:107
↓ 2 callers
Class
TransitionFunction
A transition function in a pushdown automaton
pyformlang/pda/transition_function.py:10
↓ 1 callers
Class
CFGVariableConverter
A CFG Variable Converter
pyformlang/pda/cfg_variable_converter.py:6
↓ 1 callers
Class
ContentAlreadyExistsException
Exception raised when we want to add a content that already exists
pyformlang/fcfg/feature_structure.py:5
↓ 1 callers
Class
DoublyLinkedList
A doubly linked list
pyformlang/finite_automaton/doubly_linked_list.py:6
↓ 1 callers
Class
DuplicateTransitionError
Signals a duplicated transition Parameters ---------- s_from : :class:`~pyformlang.finite_automaton.State` The source state
pyformlang/finite_automaton/transition_function.py:209
↓ 1 callers
Class
Empty
Represents an empty symbol
pyformlang/regular_expression/regex_objects.py:204
↓ 1 callers
Class
Epsilon
Represents an epsilon symbol
pyformlang/regular_expression/regex_objects.py:188
↓ 1 callers
Class
FeatureStructuresNotCompatibleException
Raised when trying to unify uncompatible structures
pyformlang/fcfg/feature_structure.py:13
↓ 1 callers
Class
HopcroftProcessingList
A representation for Hopcroft minimization algorithm For internal usage
pyformlang/finite_automaton/hopcroft_processing_list.py:8
↓ 1 callers
Class
InvalidEpsilonTransition
Exception raised when an epsilon transition is created in deterministic automaton
pyformlang/finite_automaton/transition_function.py:13
↓ 1 callers
Class
KleeneStar
Represents an epsilon symbol
pyformlang/regular_expression/regex_objects.py:163
↓ 1 callers
Class
NotParsableException
When the grammar cannot be parsed (parser not powerful enough)
pyformlang/cfg/cfg.py:30
↓ 1 callers
Class
Partition
Class to manage partitions used in Hopcroft minimization algorithm
pyformlang/finite_automaton/partition.py:8
↓ 1 callers
Class
PathDoesNotExistsException
Raised when looking for a path that does not exist
pyformlang/fcfg/feature_structure.py:9
↓ 1 callers
Class
PreviousTransitions
For internal usage
pyformlang/finite_automaton/deterministic_finite_automaton.py:21
↓ 1 callers
Class
RegexReader
A class to parse regular expressions
pyformlang/regular_expression/regex_reader.py:16
↓ 1 callers
Class
Regexable
An abstract class to represent something which are be transformed into a regex
pyformlang/finite_automaton/regexable.py:6
↓ 1 callers
Class
RuleOrdering
A class to order rules in an indexed grammar Parameters ---------- rules : iterable of :class:`~pyformlang.indexed_grammar.ReducedRule`
pyformlang/indexed_grammar/rule_ordering.py:16
↓ 1 callers
Class
Union
Represents a union
pyformlang/regular_expression/regex_objects.py:146
↓ 1 callers
Class
_PDAStateConverter
pyformlang/pda/pda.py:671
Class
CFGObject
An object in a CFG Parameters ----------- value : any The value of the object
pyformlang/cfg/cfg_object.py:6
Class
DerivationDoesNotExist
Exception raised when the word cannot be derived
pyformlang/cfg/cyk_table.py:134
Class
FiniteAutomaton
Represents a general finite automaton Attributes ---------- _states : set of :class:`~pyformlang.finite_automaton.State`, optional
pyformlang/finite_automaton/finite_automaton.py:18
Class
FiniteAutomatonObject
Represents an object in a finite state automaton Parameters ---------- value: any The value of the object
pyformlang/finite_automaton/finite_automaton_object.py:8
Class
Node
Represents a node in the tree representation of a regex Parameters ---------- value : str The value of the node
pyformlang/regular_expression/regex_objects.py:7
Class
Operator
Represents an operator Parameters ---------- value : str The value of the operator
pyformlang/regular_expression/regex_objects.py:85
Class
ReducedRule
Representation of all possible reduced forms. They can be of four types : * Consumption * Production * End * Dupli
pyformlang/indexed_grammar/reduced_rule.py:7
Class
TestCFG
Tests the context free grammar
pyformlang/cfg/tests/test_cfg.py:14
Class
TestDeterministicFiniteAutomaton
Tests for deterministic finite automata
pyformlang/finite_automaton/tests/test_deterministic_finite_automaton.py:13
Class
TestEpsilon
Tests for epsilon transitions
pyformlang/finite_automaton/tests/test_epsilon.py:8
Class
TestEpsilonNFA
Tests epsilon NFA
pyformlang/finite_automaton/tests/test_epsilon_nfa.py:13
Class
TestFCFG
Test a FCFG
pyformlang/fcfg/tests/test_fcfg.py:13
Class
TestFST
Tests FST
pyformlang/fst/tests/test_fst.py:31
Class
TestFeatureStructure
Testing of the feature structure
pyformlang/fcfg/tests/test_feature_structure.py:12
Class
TestIndexedGrammar
Tests the indexed grammar
pyformlang/indexed_grammar/tests/test_indexed_grammar.py:13
Class
TestIndexedGrammar
Tests things related to rules
pyformlang/indexed_grammar/tests/test_rules.py:13
Class
TestLLOneParser
Tests the LL(1) Parser
pyformlang/cfg/tests/test_llone_parser.py:15
Class
TestNondeterministicFiniteAutomaton
Tests for nondeterministic finite automata
pyformlang/finite_automaton/tests/test_nondeterministic_finite_automaton.py:13
Class
TestNondeterministicTransitionFunction
Tests the nondeterministic transitions functions
pyformlang/finite_automaton/tests/test_nondeterministic_transition_function.py:8
Class
TestPDA
Tests the pushdown automata
pyformlang/pda/tests/test_pda.py:11
Class
TestProduction
Tests the production
pyformlang/cfg/tests/test_production.py:6
Class
TestPythonRegex
Tests for python regex
pyformlang/regular_expression/tests/test_python_regex.py:9
Class
TestRSA
Test class for RSA
pyformlang/rsa/tests/test_rsa.py:9
Class
TestRecursiveDecentParser
pyformlang/cfg/tests/test_recursive_decent_parser.py:21
Class
TestRegex
Tests for regex
pyformlang/regular_expression/tests/test_regex.py:9
Class
TestState
Test the states
pyformlang/finite_automaton/tests/test_state.py:7
Class
TestSymbol
Tests for the symbols
pyformlang/finite_automaton/tests/test_symbol.py:7
Class
TestTerminal
Tests the terminal
pyformlang/cfg/tests/test_terminal.py:5
Class
TestTransitionFunction
Tests the transitions functions
pyformlang/finite_automaton/tests/test_transition_function.py:9
Class
TestVariable
Tests the variable
pyformlang/cfg/tests/test_variable.py:5