Documentation ¶
Overview ¶
Package vm provides a Virtual Machine to execute regular expression matching. For Details: https://swtch.com/~rsc/regexp/regexp2.html
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Thread ¶
Thread represents a thread which has two pointers(program counter/string pointer). A program counter (PC) is a register has the information where a instruction which being executed by VM. A string pointer (SP) is a register has the information where a character that the VM is looking at.
type VM ¶
type VM struct {
// contains filtered or unexported fields
}
VM represents a Virtual Machine which executes regular expression matching. The VM has a bytecode and one or more threads.
Directories ¶
Path | Synopsis |
---|---|
Package instruction provides the instruction structure and some its methods.
|
Package instruction provides the instruction structure and some its methods. |
Package opcode provides the type Opcode to identify the type of operation code.
|
Package opcode provides the type Opcode to identify the type of operation code. |
Click to show internal directories.
Click to hide internal directories.