Module ast

Source
Expand description

Enum and Struct definitions that are used to build the DC File AST. Used by crate::parser::parser.

Structs§

AtomicField
The Atomic Field variant of the AtomicOrMolecular enum.
Case
Paired with the switch_case production in the Context Free Grammar.
DClass
Paired with the distributed_class_type production in the Context Free Grammar.
DataType
KeywordDefinition
Paired with the keyword_type production in the Context Free Grammar.
MethodAsField
Paired with the method_as_field production in the Context Free Grammar.
MolecularField
Paired with the molecular_field production in the Context Free Grammar.
NonMethodType
Paired with the nonmethod_type production in the Context Free Grammar.
NumericType
Paired with the numeric_type production in the Context Free Grammar.
Parameter
Paired with the parameter production in the Context Free Grammar.
ParameterField
Paired with the parameter_field production in the Context Free Grammar.
PythonImport
Paired with the python_style_import production in the Context Free Grammar.
Root
Paired with the type_declarations production in the Context Free Grammar.
Struct
Paired with the struct_type production in the Context Free Grammar.
Switch
Paired with the switch_type production in the Context Free Grammar.
SymbolWithViews
Paired with the py_module and dclass_import productions in the Context Free Grammar.
TypeDefinition
Paired with the type_definition production in the Context Free Grammar.
TypeWithArray
Paired with the type_with_array production in the Context Free Grammar.
ViewSuffix
Paired with the view_suffix production in the Context Free Grammar.

Enums§

ArrayableType
AtomicOrMolecular
Paired with the class_field production in the Context Free Grammar.
CharOrNumber
Paired with the char_or_number production in the Context Free Grammar.
CharOrU16
Paired with the char_or_u16 production in the Context Free Grammar.
NamedField
Paired with the named_field production in the Context Free Grammar.
NonMethodDataType
Number
Paired with the ‘number’ production in the Context Free Grammar.
SizedTypeToken
Paired with the sized_type_token production in the Context Free Grammar.
StructField
Paired with the struct_field production in the Context Free Grammar.
TypeDeclaration
Paired with the type_decl production in the Context Free Grammar.
TypeOrSizedValue
Paired with the type_or_sized_value production in the Context Free Grammar.
TypeValue
Paired with the type_value production in the Context Free Grammar.

Type Aliases§

ArrayExpansion
Paired with the array_expansion production in the Context Free Grammar.
ArrayRange
Paired with the array_range production in the Context Free Grammar.
ClassFields
Paired with the optional_class_fields production in the Context Free Grammar.
KeywordList
Paired with the dc_keyword_list production in the Context Free Grammar.
MethodBody
Paired with the method_body production in the Context Free Grammar.
NumericRange
Paired with the numeric_range production in the Context Free Grammar.
ParameterValues
Paired with the parameter_values production in the Context Free Grammar.
ViewSuffixes
Paired with the view_suffixes production in the Context Free Grammar.