| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
MOO.Verb
- data Verb = Verb {}
- data ObjSpec
- data PrepSpec
- initVerb :: Verb
- obj2string :: ObjSpec -> StrT
- string2obj :: StrT -> Maybe ObjSpec
- objMatch :: ObjId -> ObjSpec -> ObjId -> Bool
- prep2string :: PrepSpec -> StrT
- string2prep :: StrT -> Maybe PrepSpec
- prepMatch :: PrepSpec -> PrepSpec -> Bool
- prepPhrases :: [(PrepSpec, [StrT])]
- verbNameMatch :: StrT -> [StrT] -> Bool
Documentation
Argument (direct/indirect object) specifier
Preposition specifier
Constructors
| PrepAny | any |
| PrepNone | none |
| PrepWithUsing | with/using |
| PrepAtTo | at/to |
| PrepInfrontof | in front of |
| PrepInInsideInto | in/inside/into |
| PrepOntopofOnOntoUpon | on top of/on/onto/upon |
| PrepOutofFrominsideFrom | out of/from inside/from |
| PrepOver | over |
| PrepThrough | through |
| PrepUnderUnderneathBeneath | under/underneath/beneath |
| PrepBehind | behind |
| PrepBeside | beside |
| PrepForAbout | for/about |
| PrepIs | is |
| PrepAs | as |
| PrepOffofOff | off of/off |
obj2string :: ObjSpec -> StrT Source
string2obj :: StrT -> Maybe ObjSpec Source
prep2string :: PrepSpec -> StrT Source
string2prep :: StrT -> Maybe PrepSpec Source
prepPhrases :: [(PrepSpec, [StrT])] Source
verbNameMatch :: StrT -> [StrT] -> Bool Source
Does the given verb name match any of the given aliases? Each alias may
use * to separate required and optional text to match.