go-sieve – git.sr.ht/~emersion/go-sieve Index | Files

package sieve

import "git.sr.ht/~emersion/go-sieve"

Index

Types

type Argument

type Argument interface {
	// contains filtered or unexported methods
}

type ArgumentNumber

type ArgumentNumber struct {
	Value      int
	Quantifier byte
}

type ArgumentStringList

type ArgumentStringList []string

type ArgumentTag

type ArgumentTag string

type Command

type Command struct {
	Name      string
	Arguments []Argument
	Tests     []Test
	Block     []Command
}

func Parse

func Parse(r io.Reader) ([]Command, error)

type Test

type Test struct {
	Name      string
	Arguments []Argument
	Tests     []Test
}

Source Files

ast.go parser.go tokenizer.go

Version
v0.0.0-20240926192256-cf8e1a9b5da9 (latest)
Published
Sep 26, 2024
Platform
linux/amd64
Imports
6 packages
Last checked
2 months ago

Tools for package owners.