Skip to main content

Crate canadensis_dsdl_parser

Crate canadensis_dsdl_parser 

Source
Expand description

This library parses Cyphal data structure definition language (DSDL) files.

Re-exports§

pub extern crate num_bigint;
pub extern crate num_rational;

Structs§

ArrayType
An array type, with an element type and length
Definition
The top-level abstract syntax tree of a DSDL file
Error
A parse error
Expression
An expression and its associated span
Identifier
An identifier
Literal
A literal value
Span
A range of characters in the input text
TypeVersion
The version of a versioned type
VersionedType
A composite type with a name and version

Enums§

ArrayLength
A range of allowed array lengths
CastMode
Cast modes for numeric values
ExpressionAtom
An atom (single value in an expression)
ExpressionType
An expression
LiteralType
A literal value
PrimitiveType
A primitive type
ScalarType
Scalar types (single values)
Statement
A statement in a DSDL file
Type
A type

Functions§

make_error
Convenience function to make an error value with a custom message
parse
Attempts to parse the text of a DSDL file into an abstract syntax tree