Documentation ¶
Index ¶
- Constants
- func Run(s *Setup)
- func RunParallel(s *Setup, routines int)
- type Database
- func (db *Database) AddAllPositions(s set.Set)
- func (db *Database) AddGroup(group *TokenGroup) Token
- func (db *Database) AddSequence(sec int, raw []string, count int)
- func (db *Database) AddToken(tokenName string) Token
- func (db *Database) MakeSection() int
- func (db *Database) MatchesOccs(s set.Set) (matches []int, occs []int)
- func (db *Database) ToTokens(raw []string) []Token
- type Extender
- type Feature
- type Filter
- type Pooler
- type ProcessQuery
- type Query
- type Querys
- type RegFlags
- type RegToken
- type Sequence
- type Setup
- type Token
- type TokenGroup
- type TokenInfo
Constants ¶
View Source
const ZeroToken = Token(0)
Variables ¶
This section is empty.
Functions ¶
func RunParallel ¶
Types ¶
type Database ¶
type Database struct { Alphabet map[Token]*TokenInfo Groups map[Token]*TokenGroup PosToSequence []Sequence // mapping from position to sequence FullSequence []Token // concatenated sequences Total []int // total number sequence for each section TotalTokens []int // total number of tokens for each section Separator string // separator for joining pattern // contains filtered or unexported fields }
func NewDatabase ¶
func NewDatabase() *Database
func (*Database) AddAllPositions ¶
func (*Database) AddGroup ¶
func (db *Database) AddGroup(group *TokenGroup) Token
func (*Database) MakeSection ¶
func (*Database) MatchesOccs ¶
type ProcessQuery ¶
type Query ¶
type Query struct { Pat []RegToken Loc set.Set Db *Database // contains filtered or unexported fields }
func NewEmptyQuery ¶
func (*Query) CacheValues ¶
func (q *Query) CacheValues()
func (*Query) StringLong ¶
type Setup ¶
type Setup struct { Db *Database Out Pooler In Pooler Extender Extender Extendable Filter Outputtable Filter PreProcess ProcessQuery PostProcess ProcessQuery }
Click to show internal directories.
Click to hide internal directories.