abstract struct Novika::FFI::TypeParser
- Novika::FFI::TypeParser
- Struct
- Value
- Object
Overview
An object used to translate Word
s (representing a foreign type)
into actual ForeignType
s.
Direct Known Subclasses
Defined in:
novika/ffi.crConstructors
-
.new(this : Block, typename : Word)
Initializes a parser object from this, a block that will be asked for word definitions in case they are needed, and typename, which is the word-to-be-parsed itself.
Instance Method Summary
-
#on_inline_struct(form : StructLayoutForm) : ForeignType
Inline struct-annotated struct layout middleware.
-
#on_primitive(type : ForeignType) : ForeignType
Primitive type middleware.
-
#on_struct_reference(form : StructLayoutForm) : ForeignType
Struct reference-annotated struct layout middleware.
-
#on_union(form : StructLayoutForm) : ForeignType
Union-annotated struct layout middleware.
-
#parse : ForeignType
Performs the parsing.
Constructor Detail
Initializes a parser object from this, a block that will be asked for word definitions in case they are needed, and typename, which is the word-to-be-parsed itself.
Instance Method Detail
Inline struct-annotated struct layout middleware.
Struct reference-annotated struct layout middleware.