Documentation ¶
Overview ¶
Package auto compiles a parsed relapse grammar into a visual pushdown automaton and executes it. Compilation into a VPA may result in an exponential explosion, since fully converting a grammar to VPA is O(2^n^2). Rather use the mem package. It gives comparable speed and has no exponential behaviour. This package is just here to provide a benchmark against the mem package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTooManyStates = errors.New("a state explosion has occured")
TODO document
Functions ¶
This section is empty.
Types ¶
type Auto ¶
type Auto struct {
// contains filtered or unexported fields
}
Auto is the structure that represents the automaton.
func CompileRecord ¶
CompileRecord compiles a parsed relapse grammar and optimizes it for the case where the input structures are records.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.