Function regorust::regoNodeType

source ยท
pub unsafe extern "C" fn regoNodeType(node: *mut regoNode) -> regoEnum
Expand description

Returns an enumeration value indicating the nodes type.

This type will be one of the following values:

NameDescription
REGO_NODE_BINDINGA binding. Will have two children, a REGO_NODE_VAR and a REGO_NODE_TERM
REGO_NODE_VARA variable name.
REGO_NODE_TERMA term. Will have one child of: REGO_NODE_SCALAR, REGO_NODE_ARRAY, REGO_NODE_SET, REGO_NODE_OBJECT
REGO_NODE_SCALARA scalar value. Will have one child of: REGO_NODE_INT, REGO_NODE_FLOAT, REGO_NODE_STRING, REGO_NODE_TRUE, REGO_NODE_FALSE, REGO_NODE_NULL, REGO_NODE_UNDEFINED
REGO_NODE_ARRAYAn array. Will have one or more children of: REGO_NODE_TERM
REGO_NODE_SETA set. Will have one or more children of: REGO_NODE_TERM
REGO_NODE_OBJECTAn object. Will have one or more children of: REGO_NODE_OBJECT_ITEM
REGO_NODE_OBJECT_ITEMAn object item. Will have two children, a REGO_NODE_TERM (the key) and a REGO_NODE_TERM (the value)
REGO_NODE_INTAn integer value.
REGO_NODE_FLOATA floating point value.
REGO_NODE_STRINGA string value.
REGO_NODE_TRUEA true value.
REGO_NODE_FALSEA false value.
REGO_NODE_NULLA null value.
REGO_NODE_UNDEFINEDAn undefined value.
REGO_NODE_ERRORAn error. Will have three children: REGO_NODE_ERROR_MESSAGE, REGO_NODE_ERROR_AST, and REGO_NODE_ERROR_CODE
REGO_NODE_ERROR_MESSAGEAn error message.
REGO_NODE_ERROR_ASTAn error AST.
REGO_NODE_ERROR_CODEAn error code.
REGO_NODE_ERROR_SEQAn error sequence. Will have one or more children of: REGO_NODE_ERROR
REGO_NODE_INTERNALAn internal node. Use regoNodeTypeName to get the full value.

@return The node type.