source

package
v0.0.0-...-a7bab2d Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemError itemType = iota
	ItemEOF
	ItemText
	ItemComment
	ItemSep
	ItemString
)

Variables

This section is empty.

Functions

func Parse

func Parse(ctx context.Context, src string) (docs map[string]string, annotations []oracall.Annotation, err error)

func ParseDocs

func ParseDocs(ctx context.Context, src string) (docs map[string]string, err error)

Types

type Item

type Item struct {
	// contains filtered or unexported fields
}

func NewItem

func NewItem(typ itemType, val string) Item

func (Item) Is

func (it Item) Is(t itemType) bool

func (Item) String

func (i Item) String() string

func (Item) Type

func (it Item) Type() itemType

func (Item) Value

func (it Item) Value() string

type ItemsIter

type ItemsIter iter.Seq[Item]

func Lex

func Lex(ctx context.Context, input string) ItemsIter

Lex creates a new scanner for the input string.

Jump to

Keyboard shortcuts

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