Qore Programming Language  0.8.9
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
node_types.h
Go to the documentation of this file.
1 /* -*- mode: c++; indent-tabs-mode: nil -*- */
2 /*
3  node_types.h
4 
5  Qore Programming Language
6 
7  Copyright 2003 - 2013 David Nichols
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23 
24 #ifndef _QORE_NODE_TYPES_H
25 
26 #define _QORE_NODE_TYPES_H
27 
32 // qore global system type constants
33 // value types must come first to support the operator matrix optimization
35 const qore_type_t NT_INT = 1;
36 const qore_type_t NT_FLOAT = 2;
38 const qore_type_t NT_DATE = 4;
40 const qore_type_t NT_NULL = 6;
42 const qore_type_t NT_LIST = 8;
43 const qore_type_t NT_HASH = 9;
44 const qore_type_t NT_OBJECT = 10;
45 const qore_type_t NT_NUMBER = 11;
48 const qore_type_t NT_VARREF = 14;
49 const qore_type_t NT_TREE = 15;
50 const qore_type_t NT_FIND = 16;
60 const qore_type_t NT_REGEX = 26;
63 const qore_type_t NT_FUNCREF = 29;
65 const qore_type_t NT_CLOSURE = 31;
78 
80 #define QORE_NUM_TYPES 43
81 
83 #define NUM_SIMPLE_TYPES 8
84 
86 #define NUM_VALUE_TYPES 12
87 
88 #endif
const qore_type_t NT_STATIC_METHOD_CALL
type value for StaticMethodCallNode (private class)
Definition: node_types.h:69
const qore_type_t NT_BINARY
type value for BinaryNode
Definition: node_types.h:41
const qore_type_t NT_CLOSURE
type value for QoreClosureParseNode (private class)
Definition: node_types.h:65
const qore_type_t NT_REGEX
type value for QoreRegexNode
Definition: node_types.h:60
const qore_type_t NT_CLASS_VARREF
type value for StaticClassVarRefNode (private class)
Definition: node_types.h:73
const qore_type_t NT_RTCONSTREF
type value for RuntimeConstantRefNode
Definition: node_types.h:77
const qore_type_t NT_SELF_VARREF
type value for SelfVarrefNode
Definition: node_types.h:52
const qore_type_t NT_CONTEXT_ROW
type value for ContextRowNode
Definition: node_types.h:57
const qore_type_t NT_LIST
type value for QoreListNode
Definition: node_types.h:42
const qore_type_t NT_PROGRAM_FUNC_CALL
type value for ProgramFunctionCallNode (private class)
Definition: node_types.h:74
const qore_type_t NT_CONSTANT
type value for ScopedRefNode (private class)
Definition: node_types.h:54
const qore_type_t NT_NOTHING
type value for QoreNothingNode
Definition: node_types.h:34
const qore_type_t NT_OBJECT
type value for QoreObject
Definition: node_types.h:44
const qore_type_t NT_VARREF
type value for VarRefNode
Definition: node_types.h:48
const qore_type_t NT_DATE
type value for DateTimeNode
Definition: node_types.h:38
const qore_type_t NT_METHOD_CALL
type value for MethodCallNode (private class)
Definition: node_types.h:68
const qore_type_t NT_FUNCREF
type value for AbstractCallReferenceNode
Definition: node_types.h:63
const qore_type_t NT_SELF_CALL
type value for SelfFunctionCallNode (private class)
Definition: node_types.h:70
const qore_type_t NT_NULL
type value for QoreNullNode
Definition: node_types.h:40
signed short qore_type_t
used to identify unique Qore data and parse types (descendents of AbstractQoreNode) ...
Definition: common.h:59
const qore_type_t NT_FUNCTION_CALL
type value for FunctionCallNode
Definition: node_types.h:51
const qore_type_t NT_CONTEXTREF
type value for ContextrefNode
Definition: node_types.h:46
const qore_type_t NT_TREE
type value for QoreTreeNode
Definition: node_types.h:49
const qore_type_t NT_RUNTIME_CLOSURE
type value for ResolvedCallReferenceNode (QoreClosureNode, QoreObjectClosureNode) ...
Definition: node_types.h:66
const qore_type_t NT_OBJMETHREF
type value for AbstractParseObjectMethodReferenceNode
Definition: node_types.h:62
const qore_type_t NT_HASH
type value for QoreHashNode
Definition: node_types.h:43
const qore_type_t NT_REFERENCE
type value for ReferenceNode
Definition: node_types.h:56
const qore_type_t NT_STRING
type value for QoreStringNode
Definition: node_types.h:37
const qore_type_t NT_REGEX_SUBST
type value for RegexSubstNode
Definition: node_types.h:58
const qore_type_t NT_SCOPE_REF
type value for ScopedObjectCallNode
Definition: node_types.h:53
const qore_type_t NT_FLOAT
type value for QoreFloatNode
Definition: node_types.h:36
const qore_type_t NT_BOOLEAN
type value for QoreBoolNode
Definition: node_types.h:39
const qore_type_t NT_INT
type value for QoreBigIntNode
Definition: node_types.h:35
const qore_type_t NT_OPERATOR
type value for QoreOperatorNode (private class)
Definition: node_types.h:71
const qore_type_t NT_IMPLICIT_ARG
type value for QoreImplicitArgumentNode (private class)
Definition: node_types.h:67
const qore_type_t NT_NUMBER
type value for QoreNumberNode
Definition: node_types.h:45
const qore_type_t NT_BAREWORD
type value for BarewordNode
Definition: node_types.h:55
const qore_type_t NT_FIND
type value for FindNode
Definition: node_types.h:50
const qore_type_t NT_IMPLICIT_ELEMENT
type value for QoreImplicitElementNode (private clas)
Definition: node_types.h:72
const qore_type_t NT_REGEX_TRANS
type value for RegexTransNode
Definition: node_types.h:59
const qore_type_t NT_COMPLEXCONTEXTREF
type value for ComplexContextrefNode
Definition: node_types.h:47
const qore_type_t NT_BACKQUOTE
type value for BackquoteNode
Definition: node_types.h:76
const qore_type_t NT_CLASSREF
type value for ClassRefNode
Definition: node_types.h:61
const qore_type_t NT_PARSEREFERENCE
type value for ParseReferenceNode (private class)
Definition: node_types.h:75
const qore_type_t NT_FUNCREFCALL
type value for CallReferenceCallNode
Definition: node_types.h:64