Documentation ¶
Overview ¶
Package vmops is an interpreter for the vmops output from libfsm.
For more information, please see: https://github.com/katef/libfsm
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadLength = errors.New("vmops: bad data length")
ErrBadLength indicates the binary encoding had a bad length
View Source
var ErrCorrupt = errors.New("vmops: bad data")
ErrCorrupt indicatest the binary encoding was corrupt
Functions ¶
This section is empty.
Types ¶
type VM ¶
type VM []Opcode
VM is a set of opcodes encoding a DFA matching a regular expression.
func (VM) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler.
func (VM) MarshalBinaryUnsafe ¶
MarshalBinaryUnsafe marshals a vm to a byte slice directly using unsafe.
func (VM) MatchString ¶
Match runs the vm against the input string and returns result.
func (*VM) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler.
func (*VM) UnmarshalBinaryUnsafe ¶
UnmarshalBinaryUnsafe unmarshals a byte slice directly using unsafe.
Click to show internal directories.
Click to hide internal directories.