28 lines
622 B
C
28 lines
622 B
C
#include <mie/dialect/dialect.h>
|
|
#include <mie/dialect/type.h>
|
|
#include <mie/macros.h>
|
|
|
|
struct float_type {
|
|
struct mie_dialect_type f_base;
|
|
size_t f_width;
|
|
};
|
|
|
|
static enum mie_status print(
|
|
const struct mie_dialect_type *def, const struct mie_type *ty, b_stream *out)
|
|
{
|
|
return MIE_SUCCESS;
|
|
}
|
|
|
|
static enum mie_status parse(
|
|
const struct mie_dialect_type *def, struct mie_parser *parser,
|
|
struct mie_type **out)
|
|
{
|
|
return MIE_SUCCESS;
|
|
}
|
|
|
|
MIE_DIALECT_TYPE_BEGIN(mie_arith_float, "float")
|
|
MIE_DIALECT_TYPE_STRUCT(struct float_type);
|
|
MIE_DIALECT_TYPE_PRINT(print);
|
|
MIE_DIALECT_TYPE_PARSE(parse);
|
|
MIE_DIALECT_TYPE_END()
|