Documentation ¶
Index ¶
Constants ¶
Variables ¶
var Stats parsingStats
Stats contains some statistics that may be checked after a call to ParseString or ParseFile
Functions ¶
func ParseFile ¶
ParseFile parses a file in parallel using an operator precedence grammar. It takes as input a filename and the number of threads, and returns a boolean representing the success or failure of the parsing and the symbol at the root of the syntactic tree (if successful).
func ParseString ¶
ParseString parses a string in parallel using an operator precedence grammar. It takes as input a string as a slice of bytes and the number of threads, and returns a boolean representing the success or failure of the parsing and the symbol at the root of the syntactic tree (if successful).
func SetCPUProfileFile ¶
Types ¶
type LOS ¶
type LOS struct {
// contains filtered or unexported fields
}
LOS is a list of stacks containing symbols. When the current stack is full a new one is automatically obtained and linked to it.
func (*LOS) HeadIterator ¶
func (l *LOS) HeadIterator() iterator
HeadIterator returns an iterator initialized to point before the first element of the list.
func (*LOS) Pop ¶
func (l *LOS) Pop() *symbol
Pop pops a symbol from the stack and returns a pointer to it.
func (*LOS) Push ¶
func (l *LOS) Push(sym *symbol) *symbol
Push pushes a symbol in the LOS. It returns a pointer to the pushed symbol.
func (*LOS) Split ¶
Split splits a LOS into a number of lists equal to numSplits, which are returned as a slice of LOS. If there are not at least numSplits stacks in the LOS it panics. The original LOS should not be used after this operation.
func (*LOS) TailIterator ¶
func (l *LOS) TailIterator() iterator
TailIterator returns an iterator initialized to point after the last element of the list.
type Nfa ¶
func NewEmptyStringNfa ¶
func NewEmptyStringNfa() Nfa
func (*Nfa) AddAssociatedRule ¶
func (*Nfa) Concatenate ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Code generated by Gopapageno; DO NOT EDIT.
|
Code generated by Gopapageno; DO NOT EDIT. |