struct Novika::FFI::ValueTypeParser

Overview

Same as DefaultTypeParser, but forbids nothing.

# this : Block

parser = ValueTypeParser.new(this, Word.new("i32"))
parser.parse # => I32

# ...

parser = ValueTypeParser.new(this, Word.new("nothing"))
parser.parse # Dies: nothing is not a value type.

Included Modules

Defined in:

novika/ffi.cr

Instance methods inherited from module Novika::FFI::TypeParser::ForbidsNothing

on_primitive(type : Nothing.class) on_primitive

Instance methods inherited from struct Novika::FFI::TypeParser

on_inline_struct(form : StructLayoutForm) : ForeignType on_inline_struct, on_primitive(type : ForeignType) : ForeignType on_primitive, on_struct_reference(form : StructLayoutForm) : ForeignType on_struct_reference, on_union(form : StructLayoutForm) : ForeignType on_union, parse : ForeignType parse

Constructor methods inherited from struct Novika::FFI::TypeParser

new(this : Block, typename : Word) new