Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
client
|
|
|
opensysml
Package opensysml is the public Go API for OpenSysML: parse SysML v2 models, look up symbols, evaluate expressions, instantiate parts, run actions and state machines, verify constraints and requirements, evaluate calculations, query the model, render documents, convert notations and edit source.
|
Package opensysml is the public Go API for OpenSysML: parse SysML v2 models, look up symbols, evaluate expressions, instantiate parts, run actions and state machines, verify constraints and requirements, evaluate calculations, query the model, render documents, convert notations and edit source. |
|
cmd
|
|
|
sysml
command
Command sysml is an interactive SysML v2 REPL (spec §13).
|
Command sysml is an interactive SysML v2 REPL (spec §13). |
|
sysml-grpc
command
sysml-grpc starts a gRPC server exposing SysML v2 parsing, resolution, and semantic services.
|
sysml-grpc starts a gRPC server exposing SysML v2 parsing, resolution, and semantic services. |
|
sysml-lsp
command
Command sysml-lsp is a stdio Language Server for SysML v2 / KerML.
|
Command sysml-lsp is a stdio Language Server for SysML v2 / KerML. |
|
editors
|
|
|
vscode/tools/gengrammar
command
Command gengrammar writes the VS Code extension's TextMate grammars from the lexer's keyword list, so highlighting cannot drift from the language.
|
Command gengrammar writes the VS Code extension's TextMate grammars from the lexer's keyword list, so highlighting cannot drift from the language. |
|
examples
|
|
|
runtime-demo
command
|
|
|
internal
|
|
|
check/edit
Package edit rewrites the source a model was parsed from.
|
Package edit rewrites the source a model was parsed from. |
|
check/passes/behavior
Package behavior contains validation passes over state machines, successions and control nodes.
|
Package behavior contains validation passes over state machines, successions and control nodes. |
|
check/passes/diagram
Package diagram contains validation passes for view renderings and diagram layout annotations.
|
Package diagram contains validation passes for view renderings and diagram layout annotations. |
|
check/passes/document
Package document contains validation passes for document definitions and queries.
|
Package document contains validation passes for document definitions and queries. |
|
check/passes/identity
Package identity contains the validation pass over declared element identities and the workspace-wide gather it reads.
|
Package identity contains the validation pass over declared element identities and the workspace-wide gather it reads. |
|
check/passes/kit
Package kit contains the reusable validation pass framework.
|
Package kit contains the reusable validation pass framework. |
|
doc/docir
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. |
|
doc/docpdf
Package docpdf renders an evaluated document to PDF by driving external converters as subprocesses; no PDF renderer is linked into the binary.
|
Package docpdf renders an evaluated document to PDF by driving external converters as subprocesses; no PDF renderer is linked into the binary. |
|
doc/docrender
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. |
|
doc/queryexec
Package queryexec executes immutable document-query plans.
|
Package queryexec executes immutable document-query plans. |
|
exec/analysis
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. |
|
exec/analysis/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. |
|
exec/analysis/modelform
Package modelform is the forms of a model an external engine reads: the sources form and the versioned graphs:1 form of the lowered action and state graphs.
|
Package modelform is the forms of a model an external engine reads: the sources form and the versioned graphs:1 form of the lowered action and state graphs. |
|
exec/analysis/record
Package record generates the SysML declarations that record an analysis run, a sweep or a Monte-Carlo sample into the model it ran on, as usages of the bundled AnalysisRecords library.
|
Package record generates the SysML declarations that record an analysis run, a sweep or a Monte-Carlo sample into the model it ran on, as usages of the bundled AnalysisRecords library. |
|
exec/engines
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. |
|
exec/objref
Package objref reads the references every surface names a held object by — `#<id>`, a declared name, or either followed by the features walked from it (`car.wheels[2]`) — and walks such a path through an object's feature values.
|
Package objref reads the references every surface names a held object by — `#<id>`, a declared name, or either followed by the features walked from it (`car.wheels[2]`) — and walks such a path through an object's feature values. |
|
exec/runtime
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. |
|
exec/smt
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. |
|
exec/solve
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. |
|
frontend/protoconv
Package protoconv converts between the runtime's values and instances and the protobuf messages of the API, for every frontend that emits that shape.
|
Package protoconv converts between the runtime's values and instances and the protobuf messages of the API, for every frontend that emits that shape. |
|
frontend/repl
Package repl implements an interactive SysML v2 read-eval-print loop as a thin frontend over model.Workspace (spec §13).
|
Package repl implements an interactive SysML v2 read-eval-print loop as a thin frontend over model.Workspace (spec §13). |
|
frontend/stdiorpc
Package stdiorpc serves SysMLService over a pair of pipes rather than a socket.
|
Package stdiorpc serves SysMLService over a pair of pipes rather than a socket. |
|
frontend/usage
Package usage describes a command's help as data, so the help a binary prints and the man page shipped for it are rendered from one source and cannot drift.
|
Package usage describes a command's help as data, so the help a binary prints and the man page shipped for it are rendered from one source and cannot drift. |
|
ir/docplan
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. |
|
ir/lower
Package lower provides AST → execution IR lowering.
|
Package lower provides AST → execution IR lowering. |
|
ir/queryplan
Package queryplan compiles native SysML document queries into immutable plans.
|
Package queryplan compiles native SysML document queries into immutable plans. |
|
ir/view
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. |
|
semantic/highlight
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. |
|
semantic/identity
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. |
|
semantic/query
Package query contains the transport-neutral element query model and evaluator.
|
Package query contains the transport-neutral element query model and evaluator. |
|
semantic/semantics
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. |
|
semantic/suggest
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. |
|
semantic/symbols
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. |
|
syntax/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. |
|
syntax/diag
Package diag holds the diagnostic type every layer reports findings in, the quick-fix edits a diagnostic carries, and the conformance mode that decides how strictly findings are judged.
|
Package diag holds the diagnostic type every layer reports findings in, the quick-fix edits a diagnostic carries, and the conformance mode that decides how strictly findings are judged. |
|
syntax/format
Package format re-indents SysML v2 / KerML source text.
|
Package format re-indents SysML v2 / KerML source text. |
|
syntax/lexer
Package lexer implements a hand-written scanner for SysML v2 and KerML.
|
Package lexer implements a hand-written scanner for SysML v2 and KerML. |
|
syntax/pack
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. |
|
syntax/source
Package source provides source file management and text indexing for the SysML v2 parser, and the notation's text forms that every layer above it reads and writes.
|
Package source provides source file management and text indexing for the SysML v2 parser, and the notation's text forms that every layer above it reads and writes. |
|
translate/codegen
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. |
|
translate/convert
Package convert is the entry point of `sysml -convert`, `%save` and the service's Export: it names the formats a model is read from and written to and drives each conversion, parsing notation and migrating SysML v1 XMI before handing the tree or graph to internal/translate/export.
|
Package convert is the entry point of `sysml -convert`, `%save` and the service's Export: it names the formats a model is read from and written to and drives each conversion, parsing notation and migrating SysML v1 XMI before handing the tree or graph to internal/translate/export. |
|
translate/export
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. |
|
translate/interop/flexo
Package flexo drives a running Flexo MMS stack — the Layer 1 service and the SysML v2 API in front of it — so the RDF this project writes can be measured against what that service can actually read back, and so a project branch can be read and written as a model's repository: `sysml -sync-diff` and `-sync-apply` sync element-wise, `sysml -convert` reads a branch URL as notation or pushes a whole Turtle graph to it.
|
Package flexo drives a running Flexo MMS stack — the Layer 1 service and the SysML v2 API in front of it — so the RDF this project writes can be measured against what that service can actually read back, and so a project branch can be read and written as a model's repository: `sysml -sync-diff` and `-sync-apply` sync element-wise, `sysml -convert` reads a branch URL as notation or pushes a whole Turtle graph to it. |
|
translate/interop/reposync
Package reposync diffs a local model's identity-carrying RDF graph against a repository-side graph of the same project scope, keyed by effective element id, so a rename or a move is an update to the existing element rather than a delete plus a create.
|
Package reposync diffs a local model's identity-carrying RDF graph against a repository-side graph of the same project scope, keyed by effective element id, so a rename or a move is an update to the existing element rather than a delete plus a create. |
|
translate/migrate
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. |
|
translate/mtip
Package mtip reads the HUDS XML an Open-MBEE MTIP export writes: the diagram records carrying each shown element's bounds and each connector's route, so a SysML v1 migration can lay out the views it writes.
|
Package mtip reads the HUDS XML an Open-MBEE MTIP export writes: the diagram records carrying each shown element's bounds and each connector's route, so a SysML v1 migration can lay out the views it writes. |
|
translate/rdf
Package rdf provides the minimal RDF graph model, Turtle writer and Turtle reader that the SysML v2 ↔ RDF conversion in internal/translate/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/translate/export is built on. |
|
translate/rdf/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. |
|
translate/simresults
Package simresults is the schema of the result sidecar a SysML v1 migration writes (-migration-results) and the comparison of a migrated run configuration with its tool's stored runs reads (-compare-results).
|
Package simresults is the schema of the result sidecar a SysML v1 migration writes (-migration-results) and the comparison of a migrated run configuration with its tool's stored runs reads (-compare-results). |
|
translate/xmi
Package xmi parses XMI documents into an immutable element tree indexed by xmi:id.
|
Package xmi parses XMI documents into an immutable element tree indexed by xmi:id. |
|
translate/xmi/sysmlv1
Package sysmlv1 interprets the element tree of internal/translate/xmi as the UML model with stereotype applications that SysML v1 tools export.
|
Package sysmlv1 interprets the element tree of internal/translate/xmi as the UML model with stereotype applications that SysML v1 tools export. |
|
workspace/envvar
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. |
|
workspace/libs
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. |
|
workspace/libs/errata
Package errata is the declared overlay of defects in OMG-published material, and the entries for the bundled standard library; published bytes are never rewritten.
|
Package errata is the declared overlay of defects in OMG-published material, and the entries for the bundled standard library; published bytes are never rewritten. |
|
workspace/model
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. |
|
workspace/project
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. |
|
tests
|
|
|
fixtures
Package fixtures enumerates conformance cases the way the gates run them, so the tests and the generated documentation figures share one definition.
|
Package fixtures enumerates conformance cases the way the gates run them, so the tests and the generated documentation figures share one definition. |
|
stressmodel
Package stressmodel generates large SysML v2 models of a stated shape and size, so the toolchain's cost can be measured against a model that looks like one a systems engineer would write rather than against one repeated declaration.
|
Package stressmodel generates large SysML v2 models of a stated shape and size, so the toolchain's cost can be measured against a model that looks like one a systems engineer would write rather than against one repeated declaration. |
|
testutil/gobuild
Package gobuild builds a command of this module for a test that drives it as a process, so the coverage profile still credits what the process ran.
|
Package gobuild builds a command of this module for a test that drives it as a process, so the coverage profile still credits what the process ran. |
|
testutil/graphcmp
Package graphcmp compares two pointer graphs structurally, for tests: same values, same shape, same sharing, and nil kept apart from empty.
|
Package graphcmp compares two pointer graphs structurally, for tests: same values, same shape, same sharing, and nil kept apart from empty. |
Click to show internal directories.
Click to hide internal directories.