Skip to Content
Lumensalis CircuitPython framework coming soon 🎉

Vocabulary

The LCPF provides a vocabulary for defining projects. This page describes the grammar - i.e. how the vocabulary is organized and defined. The “dictionary” - the terms

Grammar

You can think of the LCPF’s “vocabulary” as a collecion of kinds, nouns, and verbs. These loosely correspond to the parts of speech in natural language, but it’s not a perfect match.

Examples…

TODO: There will be examples here soon…

Kinds

A kind is simply a type of thing, used to classify what a given noun “is”.
Kinds are similar to taxonomy (genus, species…) and can be heirichal. For example

  • “dog”, “cat”, and “mammal” are all “kinds”
  • a dog “is a” mammal
  • a cat “is a” mammal
  • but a dog is not a cat
  • and a mammal is not (necessarily) a dog (although it might be)

Nouns

refer to specific “things” in an LCPF project, which

  • are of a specific kind
  • can have their own inner nouns
    • like a “person” has “arms” and “legs”
  • can have related “verbs” specific to things it’s kind can do

Verbs

While nouns represent what you can do things with, verbs represent what you can do with them.

  • “creating” nouns - many verbs add new things to your project
  • specifying interactions - verbs provide a way to express what you want to happen when certain conditions are met

Expressions

The LCPF also supports expressions, which resemble mathematical formulas and provide flexibility in fine-tuning the behavior of nouns and verbs.