Paula Script
Loading...
Searching...
No Matches
node_types.h
Go to the documentation of this file.
1#pragma once
2#include "defs.h"
3namespace paula
4{
5 // node types
6
7 constexpr INT
8
9 NODE_UNDEFINED = 0xff000000,
10
11 // tree types
12 // subtree tag mask = 0x0f000000 --> tree.cpp
13
14 NODE_SUBTREE = 0x01000000, // parser decides what kind or tree is it
15 NODE_EXPR_TREE = 0x02000000,
16 NODE_STATEMENT_TREE = 0x03000000,
17 NODE_KV_TREE = 0x07000000, // key-value pairs for map: text key that has a link to data
18
19 // data types
20
21 NODE_ANY_DATA = 0x20000000,
22
23 NODE_NAME = 0x21000000, // variable, constant, or function name
24 NODE_INTEGER = 0x22000000, // 32-bit, e.g. 123
25 NODE_DOUBLE = 0x23000000, // 64-bit, e.g. 1.23
26 NODE_TEXT = 0x24000000, // string/const char*, e.g. "abc d"
27 NODE_BOOL = 0x25000000, // true = 1, false = 0
28
29 NODE_STACK_ROOT = 0x2e000000,
30 NODE_VOID = 0x2f000000,
31
32 // controls tokens
33
34 NODE_OPERATOR = 0x31000000,
35
36 NODE_RAW_TREE = 0x41000000, // raw tree data. copy to a new Tree object
37
38 // masks
39 NODE_TYPE_MASK = 0xff000000,
40 SIZE_MASK = 0x00ffffff;
41}
Definition paula.h:7
constexpr INT NODE_INTEGER
Definition node_types.h:24
constexpr INT SIZE_MASK
Definition node_types.h:40
constexpr INT NODE_TEXT
Definition node_types.h:26
constexpr INT NODE_OPERATOR
Definition node_types.h:34
constexpr INT NODE_UNDEFINED
Definition node_types.h:9
constexpr INT NODE_SUBTREE
Definition node_types.h:14
constexpr INT NODE_ANY_DATA
Definition node_types.h:21
constexpr INT NODE_TYPE_MASK
Definition node_types.h:39
constexpr INT NODE_KV_TREE
Definition node_types.h:17
constexpr INT NODE_EXPR_TREE
Definition node_types.h:15
constexpr INT NODE_BOOL
Definition node_types.h:27
constexpr INT NODE_DOUBLE
Definition node_types.h:25
constexpr INT NODE_VOID
Definition node_types.h:30
constexpr INT NODE_NAME
Definition node_types.h:23
constexpr INT NODE_STACK_ROOT
Definition node_types.h:29
constexpr INT NODE_RAW_TREE
Definition node_types.h:36
constexpr INT NODE_STATEMENT_TREE
Definition node_types.h:16