Versions in this module Expand all Collapse all v0 v0.24.8 Aug 18, 2024 v0.24.7 Jul 1, 2024 Changes in this version + type AlwaysError struct + func (n AlwaysError) Scan(ctx Context, bounds Bounds, cs Cursor) (ret Result, err error) v0.24.6 Jun 20, 2024 v0.24.5 May 15, 2024 Changes in this version + const AllowAnonymous + const AllowMany + const OnlyNamed + const OnlyOne + var AllWords = []string + var Scanners = []Scanner + func Commas(ids []string) (ret string) + func DepthOf(e interface{}) (ret int) + func RankNouns(bounds Bounds, cs Cursor, r RankNoun) bool + type Action struct + Args []assign.Arg + Name string + func (a *Action) Scan(ctx Context, bounds Bounds, cs Cursor) (ret Result, err error) + type AllOf struct + Match []Scanner + func (m *AllOf) Scan(ctx Context, bounds Bounds, cs Cursor) (Result, error) + type AmbiguousObject struct + Nouns []NounInstance + func (a AmbiguousObject) Error() string + type AnyOf struct + Match []Scanner + func (m *AnyOf) Scan(ctx Context, bounds Bounds, cs Cursor) (ret Result, err error) + type Bounds func(NounVisitor) bool + type Commands struct + type Context interface + type Cursor struct + Pos int + Words []string + func (cs Cursor) CurrentWord() (ret string) + func (cs Cursor) Skip(i int) Cursor + type Depth int + func (d Depth) ErrorDepth() int + type Eat struct + Scanner Scanner + func (w *Eat) Scan(ctx Context, bounds Bounds, cs Cursor) (ret Result, err error) + type ErrorDepth interface + ErrorDepth func() int + type Filter interface + MatchesNoun func(NounInstance) bool + type FilterSpec struct + type Filters []Filter + func (fs Filters) MatchesNoun(n NounInstance) bool + type Focus struct + Match Scanner + Where string + func (a *Focus) Scan(ctx Context, _ Bounds, cs Cursor) (ret Result, err error) + type HasAttr struct + Name string + func (f *HasAttr) MatchesNoun(n NounInstance) bool + type HasClass struct + Name string + func (f *HasClass) MatchesNoun(n NounInstance) bool + type Language interface + IsPlural func(word string) bool + type MismatchedWord struct + Have string + Want string + func (a MismatchedWord) Error() string + type MissingObject struct + func (a MissingObject) Error() string + type Multi struct + Filters Filters + func (try *Multi) Scan(ctx Context, bounds Bounds, cs Cursor) (ret Result, err error) + type NoSuchObjects struct + func (NoSuchObjects) Error() string + type Noun struct + Filters Filters + func (try *Noun) Scan(ctx Context, bounds Bounds, cs Cursor) (ret Result, err error) + type NounInstance interface + HasAttribute func(string) bool + HasClass func(string) bool + HasName func(string) bool + HasPlural func(string) bool + String func() string + type NounVisitor func(NounInstance) bool + type Overflow struct + func (Overflow) Error() string + type RankAll struct + Context Context + Implied []NounInstance + Plurals []string + WordCount int + func (m *RankAll) RankNoun(cs Cursor, n NounInstance) bool + type RankNoun interface + RankNoun func(Cursor, NounInstance) bool + type RankOne struct + func (m *RankOne) RankNoun(cs Cursor, n NounInstance) bool + type Ranking struct + Nouns []NounInstance + Rank int + func (r *Ranking) AddRanking(n NounInstance, rank int) + func (r *Ranking) Empty() bool + type Refine struct + Match []Scanner + func (a *Refine) Scan(ctx Context, bounds Bounds, start Cursor) (ret Result, err error) + type ResolvedAction struct + func (f ResolvedAction) String() string + func (f ResolvedAction) WordsMatched() int + type ResolvedMulti struct + Nouns []NounInstance + WordCount int + func (f ResolvedMulti) String() string + func (f ResolvedMulti) WordsMatched() int + type ResolvedNoun struct + NounInstance NounInstance + Words []string + func (f ResolvedNoun) String() string + func (f ResolvedNoun) WordsMatched() int + type ResolvedWords struct + WordCount int + Words string + func (f ResolvedWords) String() string + func (f ResolvedWords) WordsMatched() int + type Result interface + WordsMatched func() int + type ResultList struct + func (rs *ResultList) Last() (ret Result, okay bool) + func (rs *ResultList) Objects() (ret []string) + func (rs *ResultList) PrettyObjects() string + func (rs *ResultList) Results() []Result + func (rs *ResultList) String() string + func (rs *ResultList) WordsMatched() int + type Reverse struct + Match []Scanner + func (m *Reverse) Scan(ctx Context, bounds Bounds, cs Cursor) (ret Result, err error) + type Scanner interface + Scan func(Context, Bounds, Cursor) (Result, error) + type Surveyor interface + GetBounds func(who, where string) (Bounds, error) + type Underflow struct + func (Underflow) Error() string + type UnknownObject struct + func (UnknownObject) Error() string + type Word struct + Word string + func (w *Word) Scan(ctx Context, bounds Bounds, cs Cursor) (ret Result, err error) + type Words []string + func (ws Words) Scan(ctx Context, bounds Bounds, cs Cursor) (ret Result, err error) v0.24.4 May 7, 2024 v0.24.4-1 May 9, 2024 v0.23.3 Apr 6, 2024 v0.23.3-2 Apr 6, 2024 v0.23.3-1 Apr 6, 2024 v0.23.2 Mar 9, 2024 v0.23.1 Jan 28, 2024