Comments (4)
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.
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.
Left: atom:*
, child*
, ingredients
, and landmark*
from cuddlyworld-ide.
I haven't done ingredients or pattern, but those can be handled by string field for now
from cuddlyworld-ide.
Related Issues (20)
- Classes dropdown should be organized HOT 2
- Delete button should clear any references to the atom as well HOT 1
- Catalog not updating when an Atom is deleted HOT 3
- Fill out blueprints
- Blank chips should be clickable to create new item HOT 1
- Dragging an item then hovering over another item in the catalog should activate that second item
- THoles' pile class is sent to the server as a quoted string HOT 1
- Changing class should be disallowed if new class would make atom invalid somewhere it's already specified HOT 1
- assertion failed HOT 2
- Pattern editor improvements
- Indenting does not work correctly
- "debug locations" output in console should be clickable
- "Add to world" should be "Add to cart" HOT 1
- need to teach serialization logic to use "connect" HOT 2
- TabDisposition introduces a dependency loop
- TAirLocation cdNorth to TSign doesn't work HOT 4
- Position dropdown overflows in small windows
- Editor should have shortcuts for adding doors, other rooms, sky, etc HOT 1
- Landmarks don't get put under their parent in the catalog HOT 2
- Update to Dart 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuddlyworld-ide.