Module cst

Source
Expand description

Concrete Syntax Tree def used as parser first pass

Structs§

Add
Additive arithmetic
And
Logical And
Annotation
Annotations: application-defined data, as a key-value pair
Cond
Conditions: powerful extensions to a policy
Expr
The main computation aspect of a policy, outer
Member
Members on a primary item, accessed with ‘.’
Mult
Multiplicative arithmetic
Name
UID and Type of named items
Or
Logical Or
Policies
The set of policy statements that forms a policy set
Policy
Policy statement, the main building block of the language
RecInit
Elements of records: field_from_expr: data_from_expr
RefInit
Elements in a ref: field: data
Unary
Unary negations
VariableDef
The variable part of one of the main item of a policy

Enums§

AddOp
Allowed Ops for Add
ExprData
The main computation aspect of a policy, inner
Ident
Any identifier, including special ones
Literal
Raw values
MemAccess
Forms of members and their accessors
MultOp
Allowed Ops for Mult
NegOp
Allowed Ops for Neg
Primary
Low-level elements like literals
Ref
Reference to an entity
RelOp
The operation involved in a comparision
Relation
Comparison relations
Slot
Template Slots
Str
Literal strings