Skip to content

Lexical Types

Table: scroll horizontally to read all columns.

Lexical typeRole in a sentenceExamples
NounsName values, categories, members, or references.Text, App, Output, a declared name, it
VerbsExpress actions and relationships.Create, Show, Run, Execute, imported Print
AdjectivesQualify nouns or describe how to construct them.Public, New, Generic, Basic, Main
AdverbsModify an action, declaration, comparison, or sequence.Publicly, Not, Less, Greater, Then
ArticlesMark a reference, declaration, argument, or absence.the, a/an, any, no
PrepositionsConnect a phrase to its value, definition, owner, or source.as, of, with, from, to, for

These are grammatical roles. Primitive, iterative, and applicational types describe what values represent. A noun can name a Text value, a Dictionary, or an App. In The App Prints message, App is the subject, Prints is the verb, and message supplies its operand; message's value may be Text.

Pronouns such as it are nouns, not another value type. The configured vocabulary also includes conjunctions (and, or) and evaluation words (if, else, otherwise, while). They connect actions or select control-flow forms; recognition alone does not make every combination executable. See grammar for those rules and the complete preposition inventory.

SourceHow the word becomes available
Language rootsThe embedded English lexicon supplies words such as Create, App, New, and As, with their grammatical roles and inflections.
Builtin definitionsThe source-defined foundation is available without Use.
User-defined wordsA program defines words by composing existing actions, construction rules, or logeme sequences. They follow the declaring scope.
Imported dictionary wordsA Use statement introduces an exported word, such as IO.Print. Bundling the standard library does not make its exports implicit.

A word's origin does not determine its part of speech. Execute is a builtin verb written using other verbs; a user can compose a verb the same way. Generic definitions extend vocabulary through these supported mechanisms. They do not introduce unrestricted English interpretation or generic type parameters.

Attributes, Definitions, and lexical categories

Section titled “Attributes, Definitions, and lexical categories”

Noun, Verb, Adjective, and Adverb are recognized lexical declaration categories. Articles and prepositions participate in grammar; they are not additional public constructors to use as New Article or New Preposition.

Attribute and Definition are applicational categories. A source-defined word can carry a native definition, but the word's grammatical role remains distinct from that implementation. Similarly, an adjective descriptor supplies construction rules rather than an ordinary object field.

builtins/eng/core.l (lines 9–12)
"Main" is a New Adjective describing any Service, Object, or Function.
It describes a Generic `main` Function of any Process with No Inputs and No Outputs.
It describes a Generic `main` Object with a New Objective Main Function using any Process.
It describes a Generic `main` Service with a New Main Object using any Process.

Fragment. Source: builtins/eng/core.l (lines 9–12).

Example evidence

Implicit Main adjective and its Function, Object, and Service construction rules; already loaded by the compiler. existing-witness-not-run. Evidence guide.

The first sentence declares Main as an Adjective targeting Service, Object, or Function. Each It describes adds a rule to that same adjective. The Function rule supplies its name and signature; the Object rule wraps that Function; the Service rule wraps the Object. New Main Service applies the construction. Generic describes the pattern, while any Process accepts the supplied body. These builtin declarations are already loaded.

The Launch example defines a verb from Build, Run, and Await; Launch First calls that sequence for an App. Its pipe-delimited label declares related spellings, as explained under word forms.

A native-backed definition instead uses logeme sequences inside <DEF> framing. Typed slots bind the caller's arguments. Both approaches define vocabulary that participates in L grammar; the native body additionally obeys its target's contracts.

The English vocabulary, builtin core, and lexical representation provide the corresponding source definitions.


Canonical source: docs/spec/lexical-types.md.