grammar

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Code generated by Tapestry; edit at your own risk.

Index

Constants

This section is empty.

Variables

View Source
var Z_Types = typeinfo.TypeSet{
	Name:       "grammar",
	Slot:       z_slot_list,
	Flow:       z_flow_list,
	Signatures: z_signatures,
}

package listing of type data

View Source
var Zt_Action typeinfo.Flow

action, a type of flow.

View Source
var Zt_ChooseOne typeinfo.Flow

choose_one, a type of flow.

View Source
var Zt_Directive typeinfo.Flow

directive, a type of flow.

View Source
var Zt_Focus typeinfo.Flow

focus, a type of flow.

View Source
var Zt_GrammarMaker = typeinfo.Slot{
	Name: "grammar_maker",
	Markup: map[string]any{
		"comment": "Helper for defining parser grammars.",
	},
}

grammar_maker, a type of slot.

View Source
var Zt_Noun typeinfo.Flow

noun, a type of flow.

View Source
var Zt_Refine typeinfo.Flow

refine, a type of flow.

View Source
var Zt_Reverse typeinfo.Flow

reverse, a type of flow.

View Source
var Zt_ScannerMaker = typeinfo.Slot{
	Name: "scanner_maker",
	Markup: map[string]any{
		"comment": "Helper for defining input scanners.",
	},
}

scanner_maker, a type of slot.

View Source
var Zt_Sequence typeinfo.Flow

sequence, a type of flow.

View Source
var Zt_Words typeinfo.Flow

words, a type of flow.

Functions

This section is empty.

Types

type Action

type Action struct {
	Action    string
	Arguments []assign.Arg
	Markup    map[string]any
}

makes a parser scanner producing a script defined action.

func (*Action) GetMarkup

func (op *Action) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Action) MakeScanner

func (op *Action) MakeScanner() parser.Scanner

func (*Action) TypeInfo

func (*Action) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Action_Slice

type Action_Slice []Action

holds a slice of type action

func (*Action_Slice) Repeats

func (op *Action_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Action_Slice) TypeInfo

func (*Action_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type ChooseOne

type ChooseOne struct {
	Options []ScannerMaker
	Markup  map[string]any
}

makes a parser scanner.

func (*ChooseOne) GetMarkup

func (op *ChooseOne) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ChooseOne) MakeScanner

func (op *ChooseOne) MakeScanner() (ret parser.Scanner)

func (*ChooseOne) TypeInfo

func (*ChooseOne) TypeInfo() typeinfo.T

implements typeinfo.Instance

type ChooseOne_Slice

type ChooseOne_Slice []ChooseOne

holds a slice of type choose_one

func (*ChooseOne_Slice) Repeats

func (op *ChooseOne_Slice) Repeats() bool

implements typeinfo.Repeats

func (*ChooseOne_Slice) TypeInfo

func (*ChooseOne_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Directive

type Directive struct {
	Name   string
	Series []ScannerMaker
	Markup map[string]any
}

starts a parser scanner.

func (*Directive) GetMarkup

func (op *Directive) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Directive) MakeGrammar

func (op *Directive) MakeGrammar() GrammarMaker

func (*Directive) MakeScanners

func (op *Directive) MakeScanners() (ret parser.Scanner)

acts as AllOf{Words, ... }

func (*Directive) TypeInfo

func (*Directive) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Directive_Slice

type Directive_Slice []Directive

holds a slice of type directive

func (*Directive_Slice) Repeats

func (op *Directive_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Directive_Slice) TypeInfo

func (*Directive_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Focus

type Focus struct {
	Player string
	Series []ScannerMaker
	Markup map[string]any
}

Select a specific set of bounds for the scanner.

func (*Focus) GetMarkup

func (op *Focus) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Focus) MakeScanner

func (op *Focus) MakeScanner() parser.Scanner

tbd: i wonder if this should have children ( like any/one of ) rather than being "inline"

func (*Focus) TypeInfo

func (*Focus) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Focus_Slice

type Focus_Slice []Focus

holds a slice of type focus

func (*Focus_Slice) Repeats

func (op *Focus_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Focus_Slice) TypeInfo

func (*Focus_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type GrammarMaker

type GrammarMaker interface{ MakeGrammar() GrammarMaker }

GrammarMaker -

type GrammarMaker_Slot

type GrammarMaker_Slot struct{ Value GrammarMaker }

holds a single slot.

func (*GrammarMaker_Slot) TypeInfo

func (*GrammarMaker_Slot) TypeInfo() typeinfo.T

implements typeinfo.Instance for a single slot.

type GrammarMaker_Slots

type GrammarMaker_Slots []GrammarMaker

holds a slice of slots.

func (*GrammarMaker_Slots) Repeats

func (op *GrammarMaker_Slots) Repeats() bool

implements typeinfo.Repeats

func (*GrammarMaker_Slots) TypeInfo

func (*GrammarMaker_Slots) TypeInfo() typeinfo.T

implements typeinfo.Instance for a series of slots.

type Noun

type Noun struct {
	Kind   string
	Markup map[string]any
}

makes a parser scanner.

func (*Noun) GetMarkup

func (op *Noun) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Noun) MakeScanner

func (op *Noun) MakeScanner() parser.Scanner

func (*Noun) TypeInfo

func (*Noun) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Noun_Slice

type Noun_Slice []Noun

holds a slice of type noun

func (*Noun_Slice) Repeats

func (op *Noun_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Noun_Slice) TypeInfo

func (*Noun_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Refine

type Refine struct {
	Series []ScannerMaker
	Markup map[string]any
}

Change to the bounds of the most recent result.

func (*Refine) GetMarkup

func (op *Refine) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Refine) MakeScanner

func (op *Refine) MakeScanner() parser.Scanner

func (*Refine) TypeInfo

func (*Refine) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Refine_Slice

type Refine_Slice []Refine

holds a slice of type refine

func (*Refine_Slice) Repeats

func (op *Refine_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Refine_Slice) TypeInfo

func (*Refine_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Reverse

type Reverse struct {
	Reverses []ScannerMaker
	Markup   map[string]any
}

Swap the first and last matching results.

func (*Reverse) GetMarkup

func (op *Reverse) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Reverse) MakeScanner

func (op *Reverse) MakeScanner() parser.Scanner

func (*Reverse) TypeInfo

func (*Reverse) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Reverse_Slice

type Reverse_Slice []Reverse

holds a slice of type reverse

func (*Reverse_Slice) Repeats

func (op *Reverse_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Reverse_Slice) TypeInfo

func (*Reverse_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type ScannerMaker

type ScannerMaker interface{ MakeScanner() parser.Scanner }

ScannerMaker - creates parser scanners

type ScannerMaker_Slot

type ScannerMaker_Slot struct{ Value ScannerMaker }

holds a single slot.

func (*ScannerMaker_Slot) TypeInfo

func (*ScannerMaker_Slot) TypeInfo() typeinfo.T

implements typeinfo.Instance for a single slot.

type ScannerMaker_Slots

type ScannerMaker_Slots []ScannerMaker

holds a slice of slots.

func (*ScannerMaker_Slots) Repeats

func (op *ScannerMaker_Slots) Repeats() bool

implements typeinfo.Repeats

func (*ScannerMaker_Slots) TypeInfo

func (*ScannerMaker_Slots) TypeInfo() typeinfo.T

implements typeinfo.Instance for a series of slots.

type Sequence

type Sequence struct {
	Series []ScannerMaker
	Markup map[string]any
}

makes a parser scanner.

func (*Sequence) GetMarkup

func (op *Sequence) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Sequence) MakeScanner

func (op *Sequence) MakeScanner() (ret parser.Scanner)

func (*Sequence) TypeInfo

func (*Sequence) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Sequence_Slice

type Sequence_Slice []Sequence

holds a slice of type sequence

func (*Sequence_Slice) Repeats

func (op *Sequence_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Sequence_Slice) TypeInfo

func (*Sequence_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Words

type Words struct {
	Words  []string
	Markup map[string]any
}

makes a parser scanner.

func (*Words) GetMarkup

func (op *Words) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Words) MakeScanner

func (op *Words) MakeScanner() parser.Scanner

func (*Words) TypeInfo

func (*Words) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Words_Slice

type Words_Slice []Words

holds a slice of type words

func (*Words_Slice) Repeats

func (op *Words_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Words_Slice) TypeInfo

func (*Words_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

Jump to

Keyboard shortcuts

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