dfa

package
v0.0.0-...-22e9dc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DFA

type DFA struct {
	fsa.FiniteAutomaton                              // {Q, Σ, F}
	Transitions         map[fsa.Transition]fsa.State // Funkcja przejść - δ: Q × Σ -> Q
	InitialState        fsa.State                    // Stan początkowy - q0
}

DFA to struktura reprezentująca deterministyczny automat skończony

func (DFA) Accepts

func (dfa DFA) Accepts(word string) (bool, error)

Accepts sprawdza czy automat akceptuje dane wyrażenie

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL