A tiny field-guide search language

Build a query from habitat, season, or species terms, with optional negation, quoted values, and repeated AND clauses.

railroad · Illustrative scenario

1 · Prompt

Suggested prompt

Create a railroad diagram for “A tiny field-guide search language”. Build a query from habitat, season, or species terms, with optional negation, quoted values, and repeated AND clauses.Read full promptClose full prompt
Use the Beautiflow skill. Create a railroad diagram for “A tiny field-guide search language”. Build a query from habitat, season, or species terms, with optional negation, quoted values, and repeated AND clauses.

Use examples/recipes/diagram-types/sources/railroad.mmd as the semantic reference; preserve its named participants, relationships, labels and authored values. Explain the system to a reader unfamiliar with this example. Keep fictional measurements and scenarios explicitly illustrative. Work in a new destination that I approve; do not overwrite the reference files.

Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.

2 · Diagram

A tiny field-guide search language

Full-size SVG · Mermaid source · Capabilities

Mermaid source

railroad-ebnf-beta
  title "A tiny field-guide search language"
  query = term, { "AND", term } ;
  term = [ "NOT" ], field, ":", value ;
  field = "habitat" | "season" | "species" ;
  value = word | '"', word, { " ", word }, '"' ;
  word = ? one or more letters ? ;

Reproduce

beautiflow render examples/recipes/diagram-types/sources/railroad.mmd --format svg --theme github-light