engine

package
v0.0.0-...-ac17267 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParallelBatchParser

type ParallelBatchParser[T any] struct {
	SerialParser[T]
	NumberOfWorkers int
}

func (ParallelBatchParser[T]) Parse

func (p ParallelBatchParser[T]) Parse(text string) ([]T, []txt.Block, []txt.Error)

type SerialParser

type SerialParser[T any] struct {
	ParseOne func(txt.Block) (T, []txt.Error)
}

func (SerialParser[T]) Parse

func (p SerialParser[T]) Parse(text string) ([]T, []txt.Block, []txt.Error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL