conformance

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package conformance names how strictly a document is judged against the pinned SysML v2 and KerML grammars. It is a value threaded explicitly through the analysis pipeline — no global, no environment read — so every entry point states the question it is asking.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode int

Mode is the strictness a parse/analysis run is asked for.

const (
	// ModeDefault accepts the OpenSysML notation extensions, reporting each as a
	// warning. It is the zero value: a caller that says nothing gets it.
	ModeDefault Mode = iota
	// ModeStrict answers "is this conforming SysML v2?": notation no pinned
	// production admits is an error, so a file using it is rejected.
	ModeStrict
)

func ModeOf

func ModeOf(strict bool) Mode

ModeOf maps a boolean surface (a CLI flag, an LSP setting, a request field) onto the mode it selects.

func ParseMode

func ParseMode(s string) (Mode, error)

ParseMode reads a mode by name, as the CLI and the REPL spell it. The empty string is the default mode, so an unset setting is not an error.

func (Mode) IsStrict

func (m Mode) IsStrict() bool

IsStrict reports whether extension notation is an error in this mode.

func (Mode) String

func (m Mode) String() string

String returns the mode's spelling, the same one every entry point accepts.

Jump to

Keyboard shortcuts

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