Skip to main content

Crate syster_cli

Crate syster_cli 

Source
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§

AddMemberResult
Result of adding a member to an element.
AnalysisResult
Result of analyzing SysML/KerML files.
AstExport
AST export result.
DecompileResult
Result of decompiling a model to SysML files.
DiagnosticInfo
A diagnostic message with location information.
ElementInfo
Information about a single model element (JSON-serializable).
ExportSymbol
A symbol for JSON export (simplified from HirSymbol).
FileAst
AST for a single file.
ImportResult
Result of importing a model from an interchange format.
InspectResult
Inspect result — detailed view of one element and its surroundings.
QueryResult
Result of querying a model.
RelationshipInfo
A relationship in human-readable form.
RemoveMemberResult
Result of removing an element.
RenameResult
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.