Skip to content

Glossary

Terms as struktJS uses them. Each entry starts with the user-facing meaning and links to developer detail where there is any.

  • Alias: An alternate name or key a concept declares so it can be found or typed another way: def for the function concept, $ for a variable reference, # for a comment. See Editor basics.

  • AST (tree): The program as a tree of nodes. Values are either a node (a concept name plus ordered children) or a primitive (number, string, boolean). The editor edits this tree directly. See Architecture overview.

  • Cell: One editable or focusable piece of the editor: a literal's text, an empty placeholder, an optional-slot + affordance, or a decoration (keyword, operator, punctuation). Tab and the arrow keys walk between cells.

  • Check: A per-concept rule that reports a problem on a node (divide by zero, wrong argument count, unreachable code). Results appear in the Problems panel. Compare constraint.

  • Completion: The Ctrl+Space popup that lists concepts and names that fit the current cell. It is a passive list: focus stays in the cell. See Completion menu.

  • Concept: A kind of node a language defines: its slots, how it is drawn (its projection), how it is checked, run and generated. if, function and assign are Core concepts. Each has a head, its internal name.

  • Constraint: A rule about an individual slot value rather than a whole node, for example a literal zero as a divisor.

  • Core: The built-in default language, with Python-like syntax: symbols, operators, control flow, functions, lists. Most plugins and samples build on it.

Console (Model Console) : The bottom tool window for querying and changing the live tree. See Model Console.

  • Data-flow analysis: Always-on analysis that finds possibly-uninitialized variables and unreachable code. See Running, debugging and generating.

  • Declaration / reference: A node that introduces a name, and a node that uses one. Languages mark which concepts are which; rename, find usages and go to declaration rely on it.

  • Devkit: A bundle (plugins/<name>/<name>.devkit.json) that combines several small sibling languages into one installable language. Core is a devkit. See Languages, plugins and devkits.

  • Empty placeholder: An unfilled slot, stored as the node __Empty__. Typing into it fills the slot.

  • Example node: The node the Appearance tab draws, shown as a real editor under the drawing. You fill it in yourself to see how a concept looks with its optional parts present or absent; it is kept in the browser per language and concept and is not written to the language file. Earlier versions called it mock data.

  • FullForm: The canonical text form of the tree, written in KDL. The FullForm pane shows it and Edit > Copy can copy it. Contrast Surface.

  • Generator: A language-defined rule set that turns a model into text or a document (source code, HTML, ...). See Generators and previews.

  • Grammar (persistence grammar): The source syntax a language's model files are saved in: python by default, or another registered one such as javascript (.model.js). See Persistence grammars.

  • Head: The internal concept name stored on a node, such as plus or function.

  • Import (language / model): A language import (in model.json) says which languages' concepts a model may use. A model import lets one model point into another by qualified name. See Projects and models.

  • Inspector: The on-demand panel showing a selected node's context (qualified name, declaration, usages, type). Opened from the tooltip's More info or Ctrl+I.

  • Intention: A context action offered on a node (wrap, replace, sort children, fold), opened with Alt+Enter.

  • KDL: The text format (kdl.dev) used for FullForm and the clipboard's structural form.

  • Language: A set of concepts plus their checks, constraints, type rules, generators and editor definitions. Saved as a .lang.js file or shipped as a plugin. See Bundled languages.

  • Live Model Session: struktJS's real-time collaboration: the live tree is mirrored between participants through a relay server. See Live collaboration.

  • Model: A folder holding a model.json and one or more root files. The unit you open, import, generate and diff.

  • Node: One element of the tree: a concept head plus children (slot values).

  • Notation: An alternate projection of the same node (for example math rendering) that you can cycle with Mod+Alt+V where the language provides one.

  • Plugin: A folder under plugins/ that contributes one or more languages (and optionally sample models). Managed with Tools > Language Plugins. See Plugins and devkits.

  • Project: The folder you open: a project.json, models (nested at any depth) and optional project languages and stubs. Only one is open at a time.

  • Projection: How a node is drawn: the rules that turn tree nodes into cells (keywords, operators, indentation). The program is the tree; the projection is just how you see it. See Projection.

  • Projectional editor: An editor that edits the tree directly and renders text from it, so the document is never syntactically invalid. See the home page.

  • Qualified name: A short, automatic dotted kebab-case name for a model or root, such as console-cookbook or console-cookbook.console-sample. See Qualified names.

  • Relay: The small server that live-collaboration participants connect through. See Running a collaboration relay.

  • Root: A model's own top-level node (for example a PythonFile), stored as its own file. A model has zero or more roots, and the editor shows one at a time. Not a statement inside a root.

  • Sample: A bundled example project, opened with File > Samples > Load Sample…. See Samples.

  • Scope: Which names are visible at a node. Computed per language; drives completion and rename.

  • Side-transformation: Typing an operator or structural key after a finished value wraps that value instead of replacing it: x then + gives x + _. See Editor basics.

  • Slot: A named place in a concept that holds a child: a single node, a list of nodes, or a primitive value. Slots can be required or optional and fixed or variadic (a list that can grow).

  • Statement: A node that sits in a block's statement list. A bare expression used as a statement is stored wrapped in an invisible ExpressionStatement. See ExpressionStatement.

  • Surface: The model as ordinary source text in the language's grammar (Python for Core). The Surface pane shows it. Contrast FullForm.

  • Type system: The optional, gradual static type checking of a language: declare with varDecl(x, "number", 0), with types inferred elsewhere. Type Trace shows how a node's type was inferred.

  • Webview: The SolidJS application that implements the editor, loaded inside Theia. The same code also runs standalone (npm run dev) for previewing.

Abbreviations

Hover over an abbreviation anywhere in this documentation to see what it stands for. The same list:

Abbreviation Meaning
AST Abstract syntax tree: the program as a tree of nodes (see Node and Slot above)
CI Continuous integration: a server that builds and tests every change automatically
CLI Command-line interface: here the strukts tool that checks, tests and generates models without opening the IDE
DOM Document Object Model: the browser's in-memory structure of a web page
DSL Domain-specific language: a small language made for one field, such as a rules table or a configuration; in struktJS you define one as a Language
ELK Eclipse Layout Kernel: the library that arranges diagram nodes automatically
IDE Integrated development environment: the application you edit, run and debug in
KDL The document text format (kdl.dev) used for the FullForm view and the structural clipboard
LionWeb An open exchange format for models between language workbenches (lionweb.io)
MathML Mathematical Markup Language: the browser's built-in math typesetting, used by math notations
MPS JetBrains MPS: a projectional language workbench. The term appears in Coming from MPS or Xtext
SHA Secure Hash Algorithm: the checksum family (SHA-256) used to verify files and downloads
SVG Scalable Vector Graphics: the drawing format used for diagrams
TLS Transport Layer Security: the encryption behind https:// connections
VSIX The package format (.vsix) of VS Code-style extensions
VSX Open VSX: the open registry the Extensions view installs VS Code extensions from
WSL2 Windows Subsystem for Linux 2: runs Linux programs on Windows