Skip to main content

sysml_v2_parser/ast/
kerml_fallback.rs

1//! KerML fallback and modeled declaration nodes.
2
3/// Modeled KerML semantic declaration captured as package-level syntax.
4#[derive(Debug, Clone, PartialEq, Eq)]
5pub struct KermlSemanticDecl {
6    pub bnf_production: String,
7    pub text: String,
8}
9
10/// Modeled KerML feature declaration family (occurrence/expr/predicate/succession).
11#[derive(Debug, Clone, PartialEq, Eq)]
12pub struct KermlFeatureDecl {
13    pub bnf_production: String,
14    pub text: String,
15}
16
17/// Package-level KerML feature declaration captured as an explicit dedicated node.
18#[derive(Debug, Clone, PartialEq, Eq)]
19pub struct FeatureDecl {
20    pub keyword: String,
21    pub text: String,
22}
23
24/// Package-level KerML classifier declaration captured as an explicit dedicated node.
25#[derive(Debug, Clone, PartialEq, Eq)]
26pub struct ClassifierDecl {
27    pub keyword: String,
28    pub text: String,
29}
30
31/// Modeled extended SysML/KerML declaration family not yet represented by
32/// dedicated concrete nodes (e.g. concern/message style library declarations).
33#[derive(Debug, Clone, PartialEq, Eq)]
34pub struct ExtendedLibraryDecl {
35    pub bnf_production: String,
36    pub text: String,
37}