Sharpee
Chord / Vocabulary & Text / Overview

Defining vocabulary and text

Everything so far attaches behavior to things that already exist. The define family is how you add to the language itself: name a condition, name a bundle of text, teach the parser a verb, mint a trait or an action other entities can be composed with — or alter the standard library's grammar itself with extend action and remove from action. Together with create, these are the language's top-level declarations, and unlike create they declare kinds and vocabulary, not instances in the world.