libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
type_type.h
Go to the documentation of this file.
1// Copyright (C) 2023 Ethan Uppal. All rights reserved.
2
3#include "enum/enum.h"
4#include "type_prim.h"
5
6ENUM(PS_TYPE_U8, _STRING(PS_PRIM_TYPE_U8) "-type", "c")
7ENUM(PS_TYPE_I8, _STRING(PS_PRIM_TYxPE_I8) "-type", "C")
8ENUM(PS_TYPE_U16, _STRING(PS_PRIM_TYPE_U16) "-type", "w")
9ENUM(PS_TYPE_I16, _STRING(PS_PRIM_TYPE_I16) "-type", "W")
10ENUM(PS_TYPE_U32, _STRING(PS_PRIM_TYPE_U32) "-type", "d")
11ENUM(PS_TYPE_I32, _STRING(PS_PRIM_TYPE_I32) "-type", "D")
12ENUM(PS_TYPE_U64, _STRING(PS_PRIM_TYPE_U64) "-type", "q")
13ENUM(PS_TYPE_I64, _STRING(PS_PRIM_TYPE_I64) "-type", "Q")
14ENUM(PS_TYPE_F32, _STRING(PS_PRIM_TYPE_F32) "-type", "f")
15ENUM(PS_TYPE_F64, _STRING(PS_PRIM_TYPE_F64) "-type", "F")
16ENUM(PS_TYPE_B, _STRING(PS_PRIM_TYPE_B) "-type", "b")
17
18ENUM(PS_TYPE_UNIT, "unit-type", "u")
19ENUM(PS_TYPE_TUPLE, "tuple-type", "T")
20
21ENUM(PS_TYPE_STRUCT, "struct-type", "")
22ENUM(PS_TYPE_ENUM, "enum-type", "")
23ENUM(PS_TYPE_TRAIT, "trait-type", "")
24ENUM(PS_TYPE_UNRESOLVED, "unresolved-type", "")
#define _STRING(x)
Definition def.h:74
Custom enum definitions with associated data.
#define ENUM
#define T(token_type)
Definition token_type.h:10
#define PS_PRIM_TYPE_F32
Definition type_prim.h:11
#define PS_PRIM_TYPE_I16
Definition type_prim.h:6
#define PS_PRIM_TYPE_B
Definition type_prim.h:13
#define PS_PRIM_TYPE_F64
Definition type_prim.h:12
#define PS_PRIM_TYPE_I64
Definition type_prim.h:10
#define PS_PRIM_TYPE_U16
Definition type_prim.h:5
#define PS_PRIM_TYPE_U64
Definition type_prim.h:9
#define PS_PRIM_TYPE_I32
Definition type_prim.h:8
#define PS_PRIM_TYPE_U32
Definition type_prim.h:7
#define PS_PRIM_TYPE_U8
Definition type_prim.h:3