Giter Club home page Giter Club logo

Comments (4)

Hixie avatar Hixie commented on June 3, 2024

enums

boolean: true, false
direction: cdNorth, cdNorthEast, cdEast, cdSouthEast, cdSouth, cdSouthWest, cdWest, cdNorthWest, cdUp, cdDown, cdOut, cdIn
mass: tmLight, { < 5kg < } tmHeavy, { < 25kg < } tmPonderous, { < 125kg < } tmLudicrous
size: tsSmall, { < 0.1m (10cm) < } tsBig, { < 1m < } tsMassive, { < 10m < } tsGigantic, { < 100m < } tsLudicrous
thingPosition: tpPartOfImplicit, tpAmbiguousPartOfImplicit, tpAroundImplicit, tpAtImplicit, tpOnImplicit, tpPlantedInImplicit, tpDirectionalOpening, tpDirectionalPath, tpSurfaceOpening, tpAt, tpOn, tpPlantedIn, tpInstalledIn, tpIn, tpEmbedded, tpCarried
landmark options: loAutoDescribe, loPermissibleNavigationTarget, loThreshold, loVisibleFromFarAway, loNotVisibleFromBehind, loConsiderDirectionUnimportantWhenFindingChildren

special syntaxes

child is <thing position>, <thing identifier>
landmark is <direction>, <atom identifier>, <landmark options...> (e.g. cdNorth, tree, loAutoDescribe loPermissibleNavigationTarget)
ingredients is comma-separated list of slash-separated terms, e.g. leaf/leaves, bug/bugs

child and landmark can be listed multiple times.

from cuddlyworld-ide.

Hixie avatar Hixie commented on June 3, 2024

documentation for pattern:

 {                                                                                                                                                           
                                                                                                                                                            
   CompilePattern() takes a string that consists of a space-separated list of tokens or nested lists.                                                       
   Nested lists are marked by round brackets (...).                                                                                                         
   Tokens can have a "+" suffix indicating that the token can be repeated.                                                                                  
   Tokens can have a "?" suffix indicating that the token can be omitted.                                                                                   
   Nested lists can have suffixes to indicate what kind of list it is:                                                                                      
     (a b c)   - sequence list (all tokens must appear in order)                                                                                            
     (a b c)?  - optional sequence list (if any appear, they must all appear, in order)                                                                     
     (a b c)@  - alternatives (one of the tokens must appear)                                                                                               
     (a b c)*  - zero or more of the alternatives must appear, in any order                                                                                 
     (a b c)#  - one or more of the alternatives must appear, in any order                                                                                  
     (a b c)%  - zero or more of the alternatives must appear, but they must be in the order given                                                          
     (a b c)&  - one or more of the alternatives must appear, but they must be in the order given                                                           
   Tokens and nested lists can be split with a "/" to indicate alternative singular/plural forms.                                                           
   Tokens and nested lists can be suffixed (after the suffixes mentioned above) with ":" and an                                                             
   integer in the range 0..31 to indicate a flag that must be matched for that token or list to be                                                          
   considered. Flag indices are zero-based. (TMatcherFlags' least-significant-bit corresponds to                                                            
   flag zero, the second bit corresponds to flag 1, and so forth.)                                                                                          
   Special characters can be escaped using \.                                                                                                               
                                                                                                                                                            
   Examples:                                                                                                                                                
     'a b c' - only matched by "a b c"                                                                                                                      
                                                                                                                                                            
     'the? ((glowing green)# lantern/lanterns)&' - returns a singular matcher that matches:                                                                 
         "the glowing", "the green", "the lantern",                                                                                                         
         "the glowing green", "the glowing lantern", "the green lantern",                                                                                   
         "the glowing green lantern", and all of those again without "the"                                                                                  
     ...and a plural matcher that matches the same but with "lanterns" instead of "lantern".                                                                
                                                                                                                                                            
     '(two beads)/bead' - returns a matcher that matches "two beads" and                                                                                    
     a matcher that matches "bead".                                                                                                                         
                                                                                                                                                            
     'the? burning:0 bush' - returns a matcher that matches either:                                                                                         
       'the burning bush' and 'burning bush' when flag 0 is set                                                                                             
       just 'the bush' and 'bush' when flag 0 is not set                                                                                                    
                                                                                                                                                            
}

from cuddlyworld-ide.

Hixie avatar Hixie commented on June 3, 2024

Left: atom:*, child*, ingredients, and landmark*

from cuddlyworld-ide.

Hixie avatar Hixie commented on June 3, 2024

I haven't done ingredients or pattern, but those can be handled by string field for now

from cuddlyworld-ide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.