Node* node = createBinaryOperationNode(ADD, createNumberNode(2), createNumberNode(3)); // creates a binary operation node representing 2 + 3 auto kind = node->getKind(); // retrieves the kind of node, which will be BINARY_OPERATION_NODE
Node* node = createFunctionCallNode("sin", createNumberNode(90)); // creates a function call node representing sin(90) auto kind = node->getKind(); // retrieves the kind of node, which will be FUNCTION_CALL_NODEThis method is part of the C++ library for abstract syntax trees (AST), which is commonly used in compilers and programming language tools. The library package is likely to be named something like "AST-Lib" or "AST-Toolkit".