Expand description
syster-cli library - Core analysis functionality
This module provides the run_analysis function for parsing and analyzing
SysML v2 and KerML files using the syster-base library.
Structs§
- AddMember
Result - Result of adding a member to an element.
- Analysis
Result - Result of analyzing SysML/KerML files.
- AstExport
- AST export result.
- Decompile
Result - Result of decompiling a model to SysML files.
- Diagnostic
Info - A diagnostic message with location information.
- Element
Info - Information about a single model element (JSON-serializable).
- Export
Symbol - A symbol for JSON export (simplified from HirSymbol).
- FileAst
- AST for a single file.
- Import
Result - Result of importing a model from an interchange format.
- Inspect
Result - Inspect result — detailed view of one element and its surroundings.
- Query
Result - Result of querying a model.
- Relationship
Info - A relationship in human-readable form.
- Remove
Member Result - Result of removing an element.
- Rename
Result - Result of a rename operation.
Functions§
- add_
member - Add a new member (part, attribute, etc.) to an existing element.
- decompile_
model - Decompile an interchange file to SysML text with metadata.
- export_
ast - Export AST (symbols) for all files.
- export_
from_ host - Export model from an existing AnalysisHost to an interchange format.
- export_
json - Export analysis result as JSON.
- export_
model - Export a model to an interchange format.
- import_
model - Import and validate a model from an interchange format (legacy version).
- import_
model_ into_ host - Import a model from an interchange format file (validation only).
- inspect_
element - Inspect a single element by name or qualified name — shows the element plus its children and relationships.
- load_
input - Load input file or directory.
- load_
stdlib_ files - Load standard library files.
- query_
model - Query a SysML model by name, kind, or qualified name.
- remove_
member - Remove an element from the model by name or qualified name.
- rename_
element - Rename an element in a SysML file and output the modified text.
- run_
analysis - Run analysis on input file or directory.