core/

directory
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: Apache-2.0

Directories

Path Synopsis
Package analysis is the analysis framework: one contract every way of answering a question about a model implements, one scale for the strength of an answer, a registry of engines and the dispatch that turns a question into the engines that answer it.
Package analysis is the analysis framework: one contract every way of answering a question about a model implements, one scale for the strength of an answer, a registry of engines and the dispatch that turns a question into the engines that answer it.
enginewire
Package enginewire is the message set an external engine and the host exchange over standard input and output: JSON-RPC 2.0 objects, one per line.
Package enginewire is the message set an external engine and the host exchange over standard input and output: JSON-RPC 2.0 objects, one per line.
ast
astcodec
Package astcodec writes syntax trees to a pack stream and reads them back.
Package astcodec writes syntax trees to a pack stream and reads them back.
Package codegen compiles the value subset of SysML v2 calcs to native code; see docs/project/native-compilation.md for the subset and its semantics.
Package codegen compiles the value subset of SysML v2 calcs to native code; see docs/project/native-compilation.md for the subset and its semantics.
Package conformance names how strictly a document is judged against the pinned SysML v2 and KerML grammars.
Package conformance names how strictly a document is judged against the pinned SysML v2 and KerML grammars.
Package docir evaluates compiled document plans into an immutable, backend-agnostic document tree with provenance on every node.
Package docir evaluates compiled document plans into an immutable, backend-agnostic document tree with provenance on every node.
Package docplan compiles native SysML v2 document definitions into immutable document plans that reference compiled query programs.
Package docplan compiles native SysML v2 document definitions into immutable document plans that reference compiled query programs.
Package docrender renders evaluated documents into backend-specific artifacts, consuming only the document IR — never plans, symbols, or ASTs.
Package docrender renders evaluated documents into backend-specific artifacts, consuming only the document IR — never plans, symbols, or ASTs.
Package edit rewrites the source a model was parsed from.
Package edit rewrites the source a model was parsed from.
Package engines assembles the registry of every analysis engine the build knows: the framework's own and those of packages the framework cannot import.
Package engines assembles the registry of every analysis engine the build knows: the framework's own and those of packages the framework cannot import.
Package envvar resolves the toolchain's OPENSYSML_-prefixed environment variables, falling back to their legacy SYSML_-prefixed names.
Package envvar resolves the toolchain's OPENSYSML_-prefixed environment variables, falling back to their legacy SYSML_-prefixed names.
Package export saves a SysML v2 model to a file and converts between the two representations OpenSysML can write: SysML textual notation and RDF Turtle.
Package export saves a SysML v2 model to a file and converts between the two representations OpenSysML can write: SysML textual notation and RDF Turtle.
Package format re-indents SysML v2 / KerML source text.
Package format re-indents SysML v2 / KerML source text.
Package highlight classifies the source text of a document into semantic tokens: the lexer's keywords, comments and literals, the names the symbol table declares, and the references the resolver answers.
Package highlight classifies the source text of a document into semantic tokens: the lexer's keywords, comments and literals, the names the symbol table declares, and the references the resolver answers.
Package identity computes the effective repository identity of the symbols of an analyzed model: the id of an element's IdentityMetadata::ElementId annotation when it carries one, the normative UUID of a named standard library element, the id derived from its qualified name otherwise, plus the project scope its nearest enclosing ProjectRef declares.
Package identity computes the effective repository identity of the symbols of an analyzed model: the id of an element's IdentityMetadata::ElementId annotation when it carries one, the normative UUID of a named standard library element, the id derived from its qualified name otherwise, plus the project scope its nearest enclosing ProjectRef declares.
normative
Package normative derives the name-based UUIDs (RFC 4122 v5) KerML fixes for the named elements of the standard library, as the SysML v2 pilot does:
Package normative derives the name-based UUIDs (RFC 4122 v5) KerML fixes for the named elements of the standard library, as the SysML v2 pilot does:
Package lexer implements a hand-written scanner for SysML v2 and KerML.
Package lexer implements a hand-written scanner for SysML v2 and KerML.
Package libs loads SysML/KerML standard-library files (bundled via embed.FS or overridden on disk) and maintains a persistent cache of their indexed symbols.
Package libs loads SysML/KerML standard-library files (bundled via embed.FS or overridden on disk) and maintains a persistent cache of their indexed symbols.
gensnapshot command
Command gensnapshot writes the bundled library's snapshot, the derived artifact package libs embeds; run through `go generate ./internal/core/libs`.
Command gensnapshot writes the bundled library's snapshot, the derived artifact package libs embeds; run through `go generate ./internal/core/libs`.
Package lower provides AST → execution IR lowering.
Package lower provides AST → execution IR lowering.
Package migrate writes a SysML v1 model, read from XMI, as SysML v2 textual notation, and reports what each v1 element became.
Package migrate writes a SysML v1 model, read from XMI, as SysML v2 textual notation, and reports what each v1 element became.
Package model owns the workspace: the set of documents, the global symbol index, and the reindex pipeline that keeps them consistent.
Package model owns the workspace: the set of documents, the global symbol index, and the reindex pipeline that keeps them consistent.
Package pack is the compact binary encoding the library snapshot is written in: a string table, then a body of varint-packed scalars and string indices.
Package pack is the compact binary encoding the library snapshot is written in: a string table, then a body of varint-packed scalars and string indices.
Package project turns the paths a user names — files, directories and glob patterns — into the model files to load, in a deterministic order.
Package project turns the paths a user names — files, directories and glob patterns — into the model files to load, in a deterministic order.
Package provenance carries source locations through derived semantic artifacts.
Package provenance carries source locations through derived semantic artifacts.
Package query contains the transport-neutral element query model and evaluator.
Package query contains the transport-neutral element query model and evaluator.
Package queryexec executes immutable document-query plans.
Package queryexec executes immutable document-query plans.
Package queryplan compiles native SysML document queries into immutable plans.
Package queryplan compiles native SysML document queries into immutable plans.
Package quickfix carries the source edits that resolve a diagnostic, attached by the layer that reported it and rendered by an editor as a quick fix.
Package quickfix carries the source edits that resolve a diagnostic, attached by the layer that reported it and rendered by an editor as a quick fix.
rdf
Package rdf provides the minimal RDF graph model, Turtle writer and Turtle reader that the SysML v2 ↔ RDF conversion in internal/core/export is built on.
Package rdf provides the minimal RDF graph model, Turtle writer and Turtle reader that the SysML v2 ↔ RDF conversion in internal/core/export is built on.
ontology
Package ontology holds the SysML v2 metamodel term table generated from the Open-MBEE OWL rendering, plus the domain/range check built on it.
Package ontology holds the SysML v2 metamodel term table generated from the Open-MBEE OWL rendering, plus the domain/range check built on it.
ontology/gen command
Command gen writes internal/core/rdf/ontology/table.go from a local checkout of https://github.com/Open-MBEE/sysmlv2-rdf-ontology, which is not vendored here.
Command gen writes internal/core/rdf/ontology/table.go from a local checkout of https://github.com/Open-MBEE/sysmlv2-rdf-ontology, which is not vendored here.
Package rename refuses renames that would change what a name means: the new name taken where the element is declared, or a rewritten reference captured.
Package rename refuses renames that would change what a name means: the new name taken where the element is declared, or a rewritten reference captured.
Package runtime provides the SysML v2 execution runtime: expression evaluation, instance materialization, and KerML operator library.
Package runtime provides the SysML v2 execution runtime: expression evaluation, instance materialization, and KerML operator library.
Package semantics provides the derived semantic model that validation depth-C constraint checks rely on: a specialization/typing graph (with cycle detection), and — in later increments — inherited-member resolution, multiplicity extraction, and a bounded model-level expression evaluator.
Package semantics provides the derived semantic model that validation depth-C constraint checks rely on: a specialization/typing graph (with cycle detection), and — in later increments — inherited-member resolution, multiplicity extraction, and a bounded model-level expression evaluator.
Package smt is the `smt` analysis engine: an action's token flow as a transition relation over SMT terms, queried for a violation or deadlock within k moves, every witness replayed.
Package smt is the `smt` analysis engine: an action's token flow as a transition relation over SMT terms, queried for a violation or deadlock within k moves, every witness replayed.
Package solve translates the conditions a constraint, requirement or satisfaction assertion states into a solver-independent term IR and writes that IR as an SMT-LIB2 script.
Package solve translates the conditions a constraint, requirement or satisfaction assertion states into a solver-independent term IR and writes that IR as an SMT-LIB2 script.
Package source provides source file management and text indexing for the SysML v2 parser.
Package source provides source file management and text indexing for the SysML v2 parser.
Package suggest offers the spellings a name that did not resolve may have meant: the qualified names the index declares it under, or the nearest spellings by edit distance.
Package suggest offers the spellings a name that did not resolve may have meant: the qualified names the index declares it under, or the nearest spellings by edit distance.
Package symbols builds an immutable per-document scope tree and a global qualified-name index over a parsed ast.RootNamespace.
Package symbols builds an immutable per-document scope tree and a global qualified-name index over a parsed ast.RootNamespace.
Package view renders a SysML view: it turns the elements a view exposes into a rendering artifact, in the form the view's `render` member states.
Package view renders a SysML view: it turns the elements a view exposes into a rendering artifact, in the form the view's `render` member states.
Package xmi reads UML 2.x models serialized as XMI, as SysML v1 tools export them, into a generic element tree with the stereotypes applied to it.
Package xmi reads UML 2.x models serialized as XMI, as SysML v1 tools export them, into a generic element tree with the stereotypes applied to it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL