liveBook · Manning

Simple setting

As explained in Building User-Friendly DSLs

A setting that assigns a simple value rather than an object or collection of objects to a property.

A simple setting assigns a simple value to a property using the form <property name> = <value>. Simple values include strings, numbers, Booleans, enumerated values, and null for missing or optional content. section 2.1

Naming an object

In an object representing Thing, the setting name="Foo" assigns Foo to the name property. This convention lets you call it the Foo object. section 2.1

Use simple settings to represent:

Figure 2.2 A simple ORD containing only one object
figure

Inspect the single-object diagram that introduces simple settings inside an object. section 2.1

How Building User-Friendly DSLs covers it

How deep it goes
Defines syntax and value categories, while deferring other kinds of settings.
Examples
Uses name="Foo", Boolean and numeric values, enumerated values, and null or undefined.
What you can do after
Evaluate structured objects by recognizing property assignments and distinguishing simple values from objects or collections.
How it connects
Connects objects, properties, simple values, collections, and relations.

This explainer was generated by Manning's knowledge graph from the text of Building User-Friendly DSLs. The section links point to the parts of the book it draws on.