Module token

Module token 

Source
Expand description

Token types for the LOGOS lexer and parser.

This module defines the vocabulary of the LOGOS language at the token level. Tokens represent the atomic syntactic units produced by the lexer and consumed by the parser.

§Token Categories

CategoryExamplesDescription
Quantifiersevery, some, noBind variables over domains
Determinersthe, a, thisSelect referents
Nounscat, philosopherPredicates over individuals
Verbsruns, lovesRelations between arguments
Adjectivesred, happyModify noun denotations
Connectivesand, or, impliesCombine propositions
Pronounshe, she, itResolve to antecedents

§Block Types

LOGOS uses markdown-style block headers for structured documents:

  • ## Theorem: Declares a proposition to be proved
  • ## Proof: Contains the proof steps
  • ## Definition: Introduces new terminology
  • ## Main: Program entry point

Structs§

Span
Token

Enums§

BlockType
Document structure block type markers.
FocusKind
MeasureKind
PresupKind
TokenType