parse

package
v0.0.0-...-9034458 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewObjectParser

func NewObjectParser(mdl meta.Model, source ident.Id) (p parser.P, err error)

NewObjectParser and add all commands and patterns. FIX-STORE: generate literals for all comprehensions; pre-compile to check for errors.

Types

type MatchMaker

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

func (MatchMaker) NewMatcher

func (m MatchMaker) NewMatcher(id ident.Id) (ret parser.IMatch, err error)

type ObjectMatcher

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

ObjectMatcher returns nouns which matches an instance's string id

func NewObjectMatcher

func NewObjectMatcher(act meta.Action, src ident.Id, mdl meta.Model) (ret *ObjectMatcher, err error)

make sure the source class matches

func (*ObjectMatcher) AddObject

func (om *ObjectMatcher) AddObject(id ident.Id) (err error)

AddObject is usually called by MatchNoun, public for net sessions :(

func (*ObjectMatcher) GetMatch

func (om *ObjectMatcher) GetMatch() (act meta.Action, ret []meta.Instance, err error)

func (*ObjectMatcher) MatchNoun

func (om *ObjectMatcher) MatchNoun(name string, _ string) (err error)

MatchNoun to relate the passed name and article to internal objects.

Jump to

Keyboard shortcuts

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