libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
node_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
5// statements
6ENUM(PS_NODE_LET, "let-stm")
7ENUM(PS_NODE_FN, "fn-stm")
8ENUM(PS_NODE_IMPORT, "import-stm")
9ENUM(PS_NODE_EXTERN, "extern-stm")
10ENUM(PS_NODE_EXPR_STM, "expr-stm")
11ENUM(PS_NODE_BLOCK, "block")
12
13// structures
14ENUM(PS_NODE_STRUCT, "struct")
15ENUM(PS_NODE_TRAIT, "trait")
16ENUM(PS_NODE_ENUM, "enum")
17ENUM(PS_NODE_FOR, "for")
18ENUM(PS_NODE_WHILE, "while")
19ENUM(PS_NODE_IF, "if")
20ENUM(PS_NODE_RETURN, "return")
21
22// expressions
23ENUM(PS_NODE_EXPR, "expr")
#define for(__arr, __capture)
Definition dynarr.h:69
Custom enum definitions with associated data.
#define ENUM