Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
cmd
|
|
|
grammar-coverage
command
Command grammar-coverage measures which productions of the OMG Xtext grammars our test inputs exercise, on input-presence evidence: for every rule, fragment, enum and terminal of KerML.xtext, KerMLExpressions.xtext and SysML.xtext it searches the corpora we already parse for the literals the production requires, and buckets it as evidence, no-evidence or indistinguishable.
|
Command grammar-coverage measures which productions of the OMG Xtext grammars our test inputs exercise, on input-presence evidence: for every rule, fragment, enum and terminal of KerML.xtext, KerMLExpressions.xtext and SysML.xtext it searches the corpora we already parse for the literals the production requires, and buckets it as evidence, no-evidence or indistinguishable. |
|
pilot-diff
command
Command pilot-diff compares this implementation's diagnostics against the OMG SysML v2 Pilot Implementation over a corpus of models, and reports, per file, the diagnostics both agree on, the ones only we report (candidate false positives) and the ones only the pilot reports (candidate gaps).
|
Command pilot-diff compares this implementation's diagnostics against the OMG SysML v2 Pilot Implementation over a corpus of models, and reports, per file, the diagnostics both agree on, the ones only we report (candidate false positives) and the ones only the pilot reports (candidate gaps). |
|
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
|
|
|
core/edit
Package edit rewrites the source a model was parsed from.
|
Package edit rewrites the source a model was parsed from. |
|
core/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. |
|
core/format
Package format re-indents SysML v2 / KerML source text.
|
Package format re-indents SysML v2 / KerML source text. |
|
core/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. |
|
core/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. |
|
core/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. |
|
core/lower
Package lower provides AST → execution IR lowering.
|
Package lower provides AST → execution IR lowering. |
|
core/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. |
|
core/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. |
|
core/quickfix
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. |
|
core/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. |
|
core/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. |
|
core/rdf/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. |
|
core/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. |
|
core/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. |
|
core/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. |
|
core/source
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. |
|
core/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. |
|
core/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. |
|
core/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. |
|
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). |
Click to show internal directories.
Click to hide internal directories.